Fix comments: comments must start with #\s not just #
This commit is contained in:
parent
16ccafe8a3
commit
c025db7bdd
5 changed files with 9 additions and 2 deletions
|
@ -35,7 +35,7 @@ type Include struct {
|
|||
}
|
||||
|
||||
var keywordRegexp = regexp.MustCompile(`^(\s*)#\+([^:]+):(\s+(.*)|$)`)
|
||||
var commentRegexp = regexp.MustCompile(`^(\s*)#(.*)`)
|
||||
var commentRegexp = regexp.MustCompile(`^(\s*)#\s(.*)`)
|
||||
|
||||
var includeFileRegexp = regexp.MustCompile(`(?i)^"([^"]+)" (src|example|export) (\w+)$`)
|
||||
var attributeRegexp = regexp.MustCompile(`(?:^|\s+)(:[-\w]+)\s+(.*)$`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue