]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lex.c
Testing CALLs in test-ast
[xonotic/gmqcc.git] / lex.c
diff --git a/lex.c b/lex.c
index 5a908b8e7d2406520ac8ca1b6e628b7495ea32e3..54875a35a1314d1459157236a9cb5d416e481410 100644 (file)
--- a/lex.c
+++ b/lex.c
@@ -124,7 +124,6 @@ static int lex_trigraph(lex_file *file) {
         default:
             lex_unget('?', file);
             lex_unget(ch , file);
-            return '?';
     }
     return '?';
 }
@@ -318,7 +317,7 @@ int lex_token(lex_file *file) {
         #undef TEST_TYPE
         return LEX_IDENT;
     }
-    return ch;
+    return (ch != ' ') ? ch : lex_token(file);
 }
 
 void lex_reset(lex_file *file) {