mojoshader_preprocessor.c
changeset 871 e72ec737ed74
parent 869 5bd359b047f3
child 873 bdffabea8e40
--- a/mojoshader_preprocessor.c	Thu Feb 25 08:52:46 2010 +0200
+++ b/mojoshader_preprocessor.c	Thu Feb 25 11:05:50 2010 +0200
@@ -880,7 +880,15 @@
         linenum = token_to_int(state);
 
     if (!bogus)
-        bogus = (lexer(state) != TOKEN_STRING_LITERAL);
+    {
+        Token t = lexer(state);
+        if (t == ((Token) '\n'))
+        {
+            state->line = linenum;
+            return;
+        }
+        bogus = (t != TOKEN_STRING_LITERAL);
+    }
 
     if (!bogus)
     {