"," now elicits a warning, rather than being

a token; this is more compatible with byacc.
This commit is contained in:
Paul Eggert
2002-11-29 08:44:40 +00:00
parent 1773ceee65
commit 763ed7a687

View File

@@ -266,11 +266,15 @@ splice (\\[ \f\t\v]*\n)*
"=" return EQUAL;
":" rule_length = 0; return COLON;
"|" rule_length = 0; return PIPE;
"," return COMMA;
";" return SEMICOLON;
[ \f\n\t\v] STEP;
"," {
warn_at (*loc, _("stray `,' treated as white space"));
STEP;
}
{id} {
val->symbol = symbol_get (yytext, *loc);
rule_length++;