diff --git a/parser.go b/parser.go index a6b71e8..328dbc5 100644 --- a/parser.go +++ b/parser.go @@ -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)