diff --git a/lib/cfg-lex.l b/lib/cfg-lex.l index 45e1848c8f..09f9ef628a 100644 --- a/lib/cfg-lex.l +++ b/lib/cfg-lex.l @@ -347,7 +347,7 @@ filterx_word [^ \#'"/\(\)\{\}\[\]\\;\r\n\t,|\.@:] ({word}+(\.)?)*{word}+ { return cfg_lexer_map_word_to_token(yyextra, yylval, yylloc, yytext); } /* and this is the version in filterx, which only allows "traditional" identifiers */ -[a-zA-Z][_a-zA-Z0-9]* { return cfg_lexer_map_word_to_token(yyextra, yylval, yylloc, yytext); } +[_a-zA-Z][_a-zA-Z0-9]* { return cfg_lexer_map_word_to_token(yyextra, yylval, yylloc, yytext); } \$\{([^}]+)\} { yylval->cptr = strndup(yytext+2, strlen(yytext) - 3); return LL_MESSAGE_REF; } \, ;