mojoshader_lexer.re
changeset 697 765a85a989a2
parent 690 4710df464f13
child 798 5dd67cc04cf9
--- a/mojoshader_lexer.re	Tue Feb 24 01:53:24 2009 -0500
+++ b/mojoshader_lexer.re	Tue Feb 24 02:04:05 2009 -0500
@@ -212,7 +212,12 @@
         PP "endif"      { RET(TOKEN_PP_ENDIF); }
         PP "error"      { RET(TOKEN_PP_ERROR); }
         WHITESPACE      { goto ppdirective; }
-        ANY             { cursor=(const uchar*)s->source; goto scanner_loop; }
+
+        ANY             {
+                            token = cursor = (const uchar *) s->source;
+                            limit = cursor + s->bytes_left;
+                            goto scanner_loop;
+                        }
 */
 
 bad_chars: