Fix comments: comments must start with #\s not just #

This commit is contained in:
Niklas Fasching 2020-07-28 19:28:30 +02:00
parent 16ccafe8a3
commit c025db7bdd
5 changed files with 9 additions and 2 deletions

View file

@ -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+(.*)$`)