mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
(<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:
@@ -154,10 +154,15 @@ splice (\\[ \f\t\v]*\n)*
|
|||||||
<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>
|
<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>
|
||||||
{
|
{
|
||||||
[ \f\n\t\v] ;
|
[ \f\n\t\v] ;
|
||||||
|
"," warn_at (*loc, _("stray `,' treated as white space"));
|
||||||
|
|
||||||
/* Comments. */
|
/* 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
|
/* #line directives are not documented, and may be withdrawn or
|
||||||
modified in future versions of Bison. */
|
modified in future versions of Bison. */
|
||||||
@@ -215,10 +220,6 @@ splice (\\[ \f\t\v]*\n)*
|
|||||||
"|" rule_length = 0; return PIPE;
|
"|" rule_length = 0; return PIPE;
|
||||||
";" return SEMICOLON;
|
";" return SEMICOLON;
|
||||||
|
|
||||||
"," {
|
|
||||||
warn_at (*loc, _("stray `,' treated as white space"));
|
|
||||||
}
|
|
||||||
|
|
||||||
{id} {
|
{id} {
|
||||||
val->symbol = symbol_get (yytext, *loc);
|
val->symbol = symbol_get (yytext, *loc);
|
||||||
id_loc = *loc;
|
id_loc = *loc;
|
||||||
|
|||||||
Reference in New Issue
Block a user