Skip to content

Commit

Permalink
add typing for lexer lookahead
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Mar 28, 2022
1 parent ead3e4c commit 1532ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct Scanner {
static bool is_escapable_sequence(TSLexer *lexer) {
// Note: remember to also update the escape_sequence rule in the
// main grammar whenever changing this method
auto letter = lexer->lookahead;
int32_t letter = lexer->lookahead;

if (letter == 'n' ||
letter == 'r' ||
Expand Down

0 comments on commit 1532ac7

Please sign in to comment.