From 181a9210d5fd05c46bdf283a2489cc321b168f1e Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sat, 6 Apr 2024 01:32:29 +0200 Subject: [PATCH] parser.go -- Fix: reset to true the firstToken flag after getting a semicolon --- parser.go | 1 + 1 file changed, 1 insertion(+) 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)