diff --git a/dyn/config_lexer.cc b/dyn/config_lexer.cc index 3d5ac197b..f1fc33e99 100644 --- a/dyn/config_lexer.cc +++ b/dyn/config_lexer.cc @@ -402,7 +402,7 @@ static yyconst flex_int32_t yy_ec[256] = 11, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 1, 1, 1, 1, 1, 1, 13, 14, 15, 16, + 1, 1, 1, 1, 12, 1, 13, 14, 15, 16, 17, 12, 12, 18, 19, 20, 12, 21, 12, 22, 23, 12, 12, 24, 25, 26, 27, 12, 12, 12, diff --git a/dyn/config_lexer.ll b/dyn/config_lexer.ll index 80918a695..56166a04e 100644 --- a/dyn/config_lexer.ll +++ b/dyn/config_lexer.ll @@ -52,7 +52,7 @@ object return T_OBJECT; include return T_INCLUDE; inherits return T_INHERITS; null return T_NULL; -[a-zA-Z][a-zA-Z0-9\-]* { yylval->text = strdup(yytext); return T_IDENTIFIER; } +[a-zA-Z_][a-zA-Z0-9\-_]* { yylval->text = strdup(yytext); return T_IDENTIFIER; } \"[^\"]+\" { yytext[yyleng-1] = '\0'; yylval->text = strdup(yytext + 1); return T_STRING; } [0-9]+ { yylval->num = atoi(yytext); return T_NUMBER; } = { yylval->op = OperatorSet; return T_EQUAL; }