parser.go -- Fix: reset to true the firstToken flag after getting a semicolon
This commit is contained in:
parent
7f9d7690f9
commit
181a9210d5
@ -139,6 +139,7 @@ func (self *parser) parseGeneral(scanner *scanner, allowForest bool, allowVarRef
|
|||||||
if tk.Sym == SymSemiColon {
|
if tk.Sym == SymSemiColon {
|
||||||
if allowForest {
|
if allowForest {
|
||||||
tree.ToForest()
|
tree.ToForest()
|
||||||
|
firstToken = true
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
err = tk.Errorf(`unexpected token %q, expected ",", "]", or ")"`, tk.source)
|
err = tk.Errorf(`unexpected token %q, expected ",", "]", or ")"`, tk.source)
|
||||||
|
Loading…
Reference in New Issue
Block a user