Commit 26c37440 26c3744021230873c1797bebde1db0ded2307b0a by Sergey Poznyakoff

Bugfix: accept ',' as OR

1 parent 398e1c56
...@@ -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>. {
......