Skip to content

Commit

Permalink
Also support 1.e+-dd
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed May 19, 2024
1 parent 48f4e93 commit f2069b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ bool tree_sitter_liquidsoap_external_scanner_scan(void *payload, TSLexer *lexer,
SKIP(IN_FLOAT_NO_LBRA);
}

if (lookahead == 'e' || lookahead == 'E') {
ADVANCE(IN_FLOAT_EXP);
}

if (lookahead == '{') {
config->no_uminus = 1;
END_STATE();
Expand Down

0 comments on commit f2069b3

Please sign in to comment.