Clean up regexps
This commit is contained in:
parent
36436a4c59
commit
ab9d87fbc8
4 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ type Include struct {
|
|||
Resolve func() Node
|
||||
}
|
||||
|
||||
var keywordRegexp = regexp.MustCompile(`^(\s*)#\+([^:]+):(\s+(.*)|(\s*)$)`)
|
||||
var keywordRegexp = regexp.MustCompile(`^(\s*)#\+([^:]+):(\s+(.*)|$)`)
|
||||
var commentRegexp = regexp.MustCompile(`^(\s*)#(.*)`)
|
||||
|
||||
var includeFileRegexp = regexp.MustCompile(`(?i)^"([^"]+)" (src|example|export) (\w+)$`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue