Skip to content

Commit

Permalink
fix crash in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Sep 4, 2024
1 parent d5e71d5 commit 81dbd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/src/earley/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ impl ParserState {
self.token_idx as isize + 1 - info.token_idx_start as isize,
) as usize;
let lex_state = self.lexer_state().lexer_state;
let mut limit = trie.alloc_token_set();
let mut limit = self.lexer_spec().alloc_lexeme_set();
let mut num_limit = 0;
{
let possible_lexemes = shared.lexer.possible_lexemes(lex_state);
Expand Down

0 comments on commit 81dbd2d

Please sign in to comment.