From 96029914a688997caef26edb87aa4c2131299fed Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 14 Nov 2012 10:57:45 +0100 Subject: [PATCH 1/1] scanner: use explicit "ignore" statements * src/scan-gram.l: here. --- src/scan-gram.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2