diff --git a/src/scan-gram.l b/src/scan-gram.l index ad061cc6..8774dc0a 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -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)* { "*/" BEGIN context_state; - .|\n ; + .|\n continue; <> unexpected_eof (token_start, "*/"); BEGIN context_state; }