Skip to content

Commit

Permalink
Merge pull request #126 from the-mikedavis/md-no-auto
Browse files Browse the repository at this point in the history
use explicit typing for lexer lookahead
  • Loading branch information
patrickt committed Mar 28, 2022
2 parents ead3e4c + 1532ac7 commit 4b56881
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 4b56881

Please sign in to comment.