diff options
author | 2019-03-25 10:23:39 -0700 | |
---|---|---|
committer | 2019-03-25 10:23:39 -0700 | |
commit | a360e1ee72524134b6facdd18072eb0f14e08bf7 (patch) | |
tree | 4541a0e75d359da2ca7867c37e5d711651b0ca96 /Source/Parser/wp_parser.l | |
parent | 59baf9835afa55cd8a5c5edec9ffe7b6c36b98d3 (diff) | |
download | WarpX-a360e1ee72524134b6facdd18072eb0f14e08bf7.tar.gz WarpX-a360e1ee72524134b6facdd18072eb0f14e08bf7.tar.zst WarpX-a360e1ee72524134b6facdd18072eb0f14e08bf7.zip |
Parser: allow underscore in symbols
Diffstat (limited to 'Source/Parser/wp_parser.l')
-rw-r--r-- | Source/Parser/wp_parser.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Parser/wp_parser.l b/Source/Parser/wp_parser.l index e8c99200d..9c54ab06c 100644 --- a/Source/Parser/wp_parser.l +++ b/Source/Parser/wp_parser.l @@ -50,7 +50,7 @@ EXP ([Ee][-+]?[0-9]+) "max" { yylval.f2 = WP_MAX; return F2; } /* We use SYMBOL to hold variables and constants */ -[a-zA-Z][a-zA-Z0-9]* { yylval.s = wp_makesymbol(yytext); return SYMBOL; } +[a-zA-Z_][a-zA-Z0-9_]* { yylval.s = wp_makesymbol(yytext); return SYMBOL; } /* Number */ [0-9]+"."[0-9]*{EXP}? | |