aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/Parser/wp_parser.l2
-rw-r--r--Source/Parser/wp_parser.lex.c2
2 files changed, 2 insertions, 2 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}? |
diff --git a/Source/Parser/wp_parser.lex.c b/Source/Parser/wp_parser.lex.c
index aca863a75..d47d2b247 100644
--- a/Source/Parser/wp_parser.lex.c
+++ b/Source/Parser/wp_parser.lex.c
@@ -414,7 +414,7 @@ static yyconst YY_CHAR yy_ec[256] =
16, 17, 1, 1, 18, 18, 18, 18, 19, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
- 1, 20, 1, 21, 1, 1, 22, 23, 24, 25,
+ 1, 20, 1, 21, 18, 1, 22, 23, 24, 25,
26, 27, 28, 29, 30, 18, 18, 31, 32, 33,
34, 35, 36, 37, 38, 39, 18, 40, 41, 42,