aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/FileLexer.l.cvs
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-17 21:36:08 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-17 21:36:08 +0000
commit774577c1f97ec2d659ac5c35c238dd0952f7f45f (patch)
tree071a1a47351c8562a9aad32ebc7d611392ef17f0 /utils/TableGen/FileLexer.l.cvs
parent4b2b9402c5c369b94b35837470a170f1d0e47e1f (diff)
Reverting unnecessary commit of generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FileLexer.l.cvs')
-rw-r--r--utils/TableGen/FileLexer.l.cvs16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/TableGen/FileLexer.l.cvs b/utils/TableGen/FileLexer.l.cvs
index 561e8a1317..59bbdad7bf 100644
--- a/utils/TableGen/FileLexer.l.cvs
+++ b/utils/TableGen/FileLexer.l.cvs
@@ -24,7 +24,7 @@
%option noreject
%option noyymore
-%x in_comment
+%x comment
%{
#include "llvm/Config/config.h"
@@ -226,13 +226,13 @@ ${Identifier} { Filelval.StrVal = new std::string(yytext+1, yytext+yyleng);
[ \t\n\r]+ { /* Ignore whitespace */ }
-"/*" { BEGIN(in_comment); CommentDepth++; }
-<in_comment>[^*/]* {} /* eat anything that's not a '*' or '/' */
-<in_comment>"*"+[^*/]* {} /* eat up '*'s not followed by '/'s */
-<in_comment>"/*" { ++CommentDepth; }
-<in_comment>"/"+[^*/]* {} /* eat up /'s not followed by *'s */
-<in_comment>"*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } }
-<in_comment><<EOF>> { err() << "Unterminated comment!\n"; exit(1); }
+"/*" { BEGIN(comment); CommentDepth++; }
+<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>"*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } }
+<comment><<EOF>> { err() << "Unterminated comment!\n"; exit(1); }
. { return Filetext[0]; }