Skip to content

Commit b532989

Browse files
committed
Bugfix: Wrong line numbers in UnexpectedToken (found in issue #23)
1 parent 2c896ac commit b532989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larkjs/lark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ class _Parser {
28002800
// Main LALR-parser loop
28012801
try {
28022802
token = null;
2803-
for (const token of state.lexer.lex(state)) {
2803+
for (token of state.lexer.lex(state)) {
28042804
state.feed_token(token);
28052805
}
28062806

0 commit comments

Comments
 (0)