From: Paul Eggert Date: Mon, 30 Dec 2002 23:38:20 +0000 (+0000) Subject: (","): X-Git-Tag: BISON-1_875~4 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/83adb046bf32ee358a0f699bd049f3a3fd2d936e?ds=sidebyside (","): Moved here from... (","): Here. This causes stray "," to be treated more uniformly. --- diff --git a/src/scan-gram.l b/src/scan-gram.l index 502fabaa..a1fbac5e 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -154,10 +154,15 @@ splice (\\[ \f\t\v]*\n)* { [ \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;