]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lex.c
Merge branch 'master' into ast-and-ir
[xonotic/gmqcc.git] / lex.c
diff --git a/lex.c b/lex.c
index 4063139fed9ee61e464c1115de5c4798ea763ea8..a7949eaf092c8fa212831055d5b65315df665a9b 100644 (file)
--- a/lex.c
+++ b/lex.c
@@ -318,7 +318,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) {
@@ -343,7 +343,7 @@ void lex_parse(lex_file *file) {
  */
 lex_file *lex_include(lex_file *lex, const char *file) {
     lex_file *set = NULL;
-    
+
     util_strrq(file);
     if (strncmp(lex->name, file, strlen(lex->name)) == 0) {
         error(lex, ERROR_LEX, "Source file cannot include itself\n");