Skip to content

Commit

Permalink
Bugfix: Wrong line numbers in UnexpectedToken (found in issue #23)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Apr 11, 2022
1 parent 2c896ac commit b532989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larkjs/lark.js
Original file line number Diff line number Diff line change
Expand Up @@ -2800,7 +2800,7 @@ class _Parser {
// Main LALR-parser loop
try {
token = null;
for (const token of state.lexer.lex(state)) {
for (token of state.lexer.lex(state)) {
state.feed_token(token);
}

Expand Down

0 comments on commit b532989

Please sign in to comment.