Skip to content

Commit

Permalink
Fix whitespace handing in string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
VasiliyRyabtsev committed Feb 5, 2021
1 parent a824159 commit b15aca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squirrel/grammar.cpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ static const char *grammar = R"(
FLOAT <- < [-+]?[0-9]* '.'? [0-9]+([eE][-+]?[0-9]+)? / ['-+']?[0-9]+ '.' [0-9]* >
BOOLEAN <- < 'true' | 'false' >
NULL <- 'null'
STRING_LITERAL <- '"' < ([^"])* > '"'
VERBATIM_STRING <- '@"' < ([^"] / '""')* > '"'
STRING_LITERAL <- <'"' < (!'"' .)* > '"'>
VERBATIM_STRING <- <'@"' < (!'"' . / '""')* > '"'>
IDENTIFIER <- < !KEYWORD [a-zA-Z_][a-zA-Z_0-9]* / 'this' >
BINARY_OP <- '??' / '||' / '&&' / '^' / '&' /
'==' / '!=' / '<=>' / '<='/ '>=' / '<<' / '>>' / '>>>' / '<' / '>' /
Expand Down

0 comments on commit b15aca3

Please sign in to comment.