Skip to content

Commit 3866725

Browse files
committed
Fixed #236
1 parent 317aa20 commit 3866725

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Deltinteger/Deltinteger/Compiler/Parse

Deltinteger/Deltinteger/Compiler/Parse/Lexer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,9 @@ public void PushToken(Token token)
684684

685685
public void EndReached()
686686
{
687-
while (_tokens.Count > Current)
688-
_tokens.RemoveAt(Current);
687+
if (Current != -1)
688+
while (_tokens.Count > Current)
689+
_tokens.RemoveAt(Current);
689690
}
690691
}
691692

0 commit comments

Comments
 (0)