(<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>","):

Moved here from...
(<INITIAL>","): Here.  This causes stray "," to be treated
more uniformly.
This commit is contained in:
Paul Eggert
2002-12-30 23:38:20 +00:00
parent 255227393f
commit 83adb046bf

View File

@@ -154,10 +154,15 @@ splice (\\[ \f\t\v]*\n)*
<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>
{
[ \f\n\t\v] ;
"," warn_at (*loc, _("stray `,' treated as white space"));
/* Comments. */
"/*" token_start = loc->start; context_state = YY_START; BEGIN SC_YACC_COMMENT;
"//".* ;
"/*" {
token_start = loc->start;
context_state = YY_START;
BEGIN SC_YACC_COMMENT;
}
/* #line directives are not documented, and may be withdrawn or
modified in future versions of Bison. */
@@ -215,10 +220,6 @@ splice (\\[ \f\t\v]*\n)*
"|" rule_length = 0; return PIPE;
";" return SEMICOLON;
"," {
warn_at (*loc, _("stray `,' treated as white space"));
}
{id} {
val->symbol = symbol_get (yytext, *loc);
id_loc = *loc;