From cc9e3d1536b5c3e4b094a59411f5ced02cc1b73c Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sat, 4 Oct 2008 20:35:22 -0700 Subject: [PATCH] Comments should be tossed by the lexor. It is silly to use yymore() to collect even more of the comment so that it can be tossed at the tail end of the comment processing. So don't. --- lexor.lex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index c487bd28a..34eca1c0b 100644 --- a/lexor.lex +++ b/lexor.lex @@ -124,8 +124,8 @@ S [afpnumkKMGT] /* The contents of C-style comments are ignored, like white space. */ "/*" { comment_enter = YY_START; BEGIN(CCOMMENT); } -. { yymore(); } -\n { yylloc.first_line += 1; yymore(); } +. { ; } +\n { yylloc.first_line += 1; } "*/" { BEGIN(comment_enter); }