scanner: use explicit "ignore" statements

* src/scan-gram.l: here.
This commit is contained in:
Akim Demaille
2012-11-14 10:57:45 +01:00
parent 05c93b7d84
commit 96029914a6

View File

@@ -148,7 +148,7 @@ splice (\\[ \f\t\v]*\n)*
/* Comments and white space. */
"," warn_at (*loc, _("stray ',' treated as white space"));
[ \f\n\t\v] |
"//".* ;
"//".* continue;
"/*" {
token_start = loc->start;
context_state = YY_START;
@@ -403,7 +403,7 @@ splice (\\[ \f\t\v]*\n)*
<SC_YACC_COMMENT>
{
"*/" BEGIN context_state;
.|\n ;
.|\n continue;
<<EOF>> unexpected_eof (token_start, "*/"); BEGIN context_state;
}