[llvm-commits] CVS: llvm/utils/TableGen/FileLexer.l

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 6 14:23:20 PDT 2005



Changes in directory llvm/utils/TableGen:

FileLexer.l updated: 1.24 -> 1.25
---
Log message:

Tighten up the specification to allow TableGen/nested-comment.td to pass
(fixing a bug where / in a /* */ comment would cause it to not close).


---
Diffs of the changes:  (+3 -3)

 FileLexer.l |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/utils/TableGen/FileLexer.l
diff -u llvm/utils/TableGen/FileLexer.l:1.24 llvm/utils/TableGen/FileLexer.l:1.25
--- llvm/utils/TableGen/FileLexer.l:1.24	Mon Apr 18 20:11:03 2005
+++ llvm/utils/TableGen/FileLexer.l	Tue Sep  6 16:23:09 2005
@@ -214,10 +214,10 @@
 
 
 "/*"                    { 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); }
 






More information about the llvm-commits mailing list