mojoshader_lexer.re
changeset 631 5045dcc9fdaf
parent 616 9f087be64555
child 635 be3b428802a1
--- a/mojoshader_lexer.re	Sun Feb 15 02:49:40 2009 -0500
+++ b/mojoshader_lexer.re	Sun Feb 15 02:51:39 2009 -0500
@@ -69,6 +69,8 @@
 */
 
 /*!re2c
+    "\\" [ \t\v\f]* NEWLINE  { s->line++; goto scanner_loop; }
+
     "/*"            { goto multilinecomment; }
     "//"            { goto singlelinecomment; }
 
@@ -83,7 +85,7 @@
     
     (["] (ESC|ANY\[\r\n\\"])* ["])
                     { RET(TOKEN_STRING_LITERAL); }
-    
+
     ">>="           { RET(TOKEN_RSHIFTASSIGN); }
     "<<="           { RET(TOKEN_LSHIFTASSIGN); }
     "+="            { RET(TOKEN_ADDASSIGN); }
@@ -129,7 +131,6 @@
     "}"             { RET('}'); }
     "="             { RET('='); }
     "?"             { RET('?'); }
-    "\\"            { RET('\\'); }
 
     PP "include"    { RET(TOKEN_PP_INCLUDE); }
     PP "line"       { RET(TOKEN_PP_LINE); }