Bugfix: accept ',' as OR
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -91,7 +91,7 @@ WS [ \t]* | ... | @@ -91,7 +91,7 @@ WS [ \t]* |
91 | prev_state = YYSTATE; | 91 | prev_state = YYSTATE; |
92 | BEGIN(HEX); | 92 | BEGIN(HEX); |
93 | } | 93 | } |
94 | <INITIAL>[^ \t<\\\n)+&]/[ \t\\\n)+&] { | 94 | <INITIAL>[^ \t<\\\n)+,&]/[ \t\\\n)+,&] { |
95 | obstack_grow (&stack, yytext, yyleng); | 95 | obstack_grow (&stack, yytext, yyleng); |
96 | yylval.string.len = obstack_object_size (&stack); | 96 | yylval.string.len = obstack_object_size (&stack); |
97 | obstack_1grow (&stack, 0); | 97 | obstack_1grow (&stack, 0); |
... | @@ -124,7 +124,7 @@ WS [ \t]* | ... | @@ -124,7 +124,7 @@ WS [ \t]* |
124 | "&&" return '+'; | 124 | "&&" return '+'; |
125 | "||" return ','; | 125 | "||" return ','; |
126 | /* Operators */ | 126 | /* Operators */ |
127 | "!"|"+"|"("|")"|"/" return yytext[0]; | 127 | "!"|"+"|","|"("|")"|"/" return yytext[0]; |
128 | <ARGS>"," return yytext[0]; | 128 | <ARGS>"," return yytext[0]; |
129 | <ARGS>")" { BEGIN(INITIAL); return yytext[0]; } | 129 | <ARGS>")" { BEGIN(INITIAL); return yytext[0]; } |
130 | <INITIAL,ARGS,HEX>. { | 130 | <INITIAL,ARGS,HEX>. { | ... | ... |
-
Please register or sign in to post a comment