[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix bug with inconsistent handling of stray ","
From: |
Paul Eggert |
Subject: |
Fix bug with inconsistent handling of stray "," |
Date: |
Mon, 30 Dec 2002 15:44:35 -0800 |
I installed this:
2002-12-30 Paul Eggert <address@hidden>
* src/scan-gram.l (<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>","):
Moved here from...
(<INITIAL>","): Here. This causes stray "," to be treated
more uniformly.
--- src/scan-gram.l 30 Dec 2002 22:40:52 -0000 1.52
+++ src/scan-gram.l 30 Dec 2002 23:38:20 -0000 1.53
@@ -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. */
@@ -214,10 +219,6 @@ splice (\\[ \f\t\v]*\n)*
"=" return EQUAL;
"|" rule_length = 0; return PIPE;
";" return SEMICOLON;
-
- "," {
- warn_at (*loc, _("stray `,' treated as white space"));
- }
{id} {
val->symbol = symbol_get (yytext, *loc);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fix bug with inconsistent handling of stray ",",
Paul Eggert <=