Skip to content

Commit

Permalink
parser: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Feb 23, 2024
1 parent 04254df commit 81e0126
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ bool tree_sitter_abl_external_scanner_scan(
}
}
}
}

if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead, 'A')) {
lexer->advance(lexer, false);
if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead, 'N')) {
if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead, 'A')) {
lexer->advance(lexer, false);
if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead,'D')) {
if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead, 'N')) {
lexer->advance(lexer, false);
if (!lexer->eof(lexer) && iswspace(lexer->lookahead)) {
lexer->result_symbol = AND_OPERATOR;
return true;
if (!lexer->eof(lexer) && insensitive_equals(lexer->lookahead,'D')) {
lexer->advance(lexer, false);
if (!lexer->eof(lexer) && iswspace(lexer->lookahead)) {
lexer->result_symbol = AND_OPERATOR;
return true;
}
}
}
}
Expand Down

0 comments on commit 81e0126

Please sign in to comment.