diff options
-rw-r--r-- | utils/TableGen/FileLexer.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/FileLexer.l b/utils/TableGen/FileLexer.l index a433587996..caed04e2eb 100644 --- a/utils/TableGen/FileLexer.l +++ b/utils/TableGen/FileLexer.l @@ -214,10 +214,10 @@ ${Identifier} { Filelval.StrVal = new std::string(yytext+1, yytext+yyleng); "/*" { BEGIN(comment); CommentDepth++; } -<comment>[^*/]* /* eat anything that's not a '*' or '/' */ -<comment>"*"+[^*/]* /* eat up '*'s not followed by '/'s */ +<comment>[^*/]* {} /* eat anything that's not a '*' or '/' */ +<comment>"*"+[^*/]* {} /* eat up '*'s not followed by '/'s */ <comment>"/*" { ++CommentDepth; } -<comment>"/"+[^*]* /* eat up /'s not followed by *'s */ +<comment>"/"+[^*/]* {} /* eat up /'s not followed by *'s */ <comment>"*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } } <comment><<EOF>> { err() << "Unterminated comment!\n"; exit(1); } |