mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-12 16:24:41 +02:00
Allow _ in identifier names.
This commit is contained in:
parent
7750242384
commit
01c2da2853
@ -402,7 +402,7 @@ static yyconst flex_int32_t yy_ec[256] =
|
|||||||
11, 1, 1, 1, 12, 12, 12, 12, 12, 12,
|
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,
|
||||||
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,
|
17, 12, 12, 18, 19, 20, 12, 21, 12, 22,
|
||||||
23, 12, 12, 24, 25, 26, 27, 12, 12, 12,
|
23, 12, 12, 24, 25, 26, 27, 12, 12, 12,
|
||||||
|
@ -52,7 +52,7 @@ object return T_OBJECT;
|
|||||||
include return T_INCLUDE;
|
include return T_INCLUDE;
|
||||||
inherits return T_INHERITS;
|
inherits return T_INHERITS;
|
||||||
null return T_NULL;
|
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; }
|
\"[^\"]+\" { yytext[yyleng-1] = '\0'; yylval->text = strdup(yytext + 1); return T_STRING; }
|
||||||
[0-9]+ { yylval->num = atoi(yytext); return T_NUMBER; }
|
[0-9]+ { yylval->num = atoi(yytext); return T_NUMBER; }
|
||||||
= { yylval->op = OperatorSet; return T_EQUAL; }
|
= { yylval->op = OperatorSet; return T_EQUAL; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user