mojoshader_lexer.re
changeset 690 4710df464f13
parent 679 3892ebde7d99
child 697 765a85a989a2
--- a/mojoshader_lexer.re	Mon Feb 23 20:43:41 2009 -0500
+++ b/mojoshader_lexer.re	Mon Feb 23 23:07:06 2009 -0500
@@ -148,12 +148,13 @@
     "^"             { RET('^'); }
     "|"             { RET('|'); }
     ":"             { RET(':'); }
-    ";"             { RET(';'); }
     "{"             { RET('{'); }
     "}"             { RET('}'); }
     "="             { RET('='); }
     "?"             { RET('?'); }
 
+    ";"             { if (s->asm_comments) goto singlelinecomment; RET(';'); }
+
     "\000"          { if (eoi) { RET(TOKEN_EOI); } goto bad_chars; }
 
     WHITESPACE      { if (s->report_whitespace) RET(' '); goto scanner_loop; }