Add at 'X' attribute to indicate rules that are not to be run concurrently with anything

This commit is contained in:
Daniel Jones 2013-07-09 23:13:37 -07:00
parent 782a73e0d9
commit 1eb840af57
3 changed files with 57 additions and 14 deletions

View file

@ -328,7 +328,7 @@ func parseRecipe(p *parser, t token) parserStateFun {
patstr := fmt.Sprintf("^%s(.*)%s$", left, right)
rpat, err := regexp.Compile(patstr)
if err != nil {
msg := fmt.Sprintf("error compiling suffix rule. This is a bug.", err)
msg := fmt.Sprintf("error compiling suffix rule. This is a bug. Error: %s", err)
p.basicErrorAtToken(msg, p.tokenbuf[k])
}
r.targets[len(r.targets)-1].rpat = rpat