Skip to content

Commit fceabc9

Browse files
committed
Fixed accidental global.
1 parent 522d698 commit fceabc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dumbParser.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,7 @@ local function parseOneOrPossiblyMoreStatements(tokens, tok, statements) --> suc
16691669
local label = AstLabel(tok)
16701670
tok = tok + 1 -- '::'
16711671

1672+
local tokNext
16721673
label.name, tokNext = parseIdentifier(tokens, tok)
16731674
if not label.name then return false, tok end
16741675
tok = tokNext
@@ -1687,6 +1688,7 @@ local function parseOneOrPossiblyMoreStatements(tokens, tok, statements) --> suc
16871688
local gotoNode = AstGoto(tok)
16881689
tok = tok + 1 -- 'goto'
16891690

1691+
local tokNext
16901692
gotoNode.name, tokNext = parseIdentifier(tokens, tok)
16911693
if not gotoNode.name then return false, tok end
16921694
tok = tokNext

0 commit comments

Comments
 (0)