parser.go -- Fix: reset to true the firstToken flag after getting a semicolon

This commit is contained in:
Celestino Amoroso 2024-04-06 01:32:29 +02:00
parent 7f9d7690f9
commit 181a9210d5

View File

@ -139,6 +139,7 @@ func (self *parser) parseGeneral(scanner *scanner, allowForest bool, allowVarRef
if tk.Sym == SymSemiColon {
if allowForest {
tree.ToForest()
firstToken = true
continue
} else {
err = tk.Errorf(`unexpected token %q, expected ",", "]", or ")"`, tk.source)