]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Removing some debug output
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 5c98d31caedbcf1f95fba984d871686558cc0f5d..1bea430edd36b1929505d8baf2fba3b7b9457cde 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -466,6 +466,8 @@ int lex_do(lex_file *lex)
 
                case ',':
 
+               case '#':
+
                        return (lex->tok->ttype = ch);
                default:
                        break;
@@ -577,10 +579,11 @@ int lex_do(lex_file *lex)
                } else if (!strcmp(v, "vector")) {
                        lex->tok->ttype = TOKEN_TYPENAME;
                    lex->tok->constval.t = TYPE_VECTOR;
-               } else if (!strcmp(v, "for") ||
-                        !strcmp(v, "while") ||
-                        !strcmp(v, "do")    ||
-                        !strcmp(v, "var")   ||
+               } else if (!strcmp(v, "for")  ||
+                        !strcmp(v, "while")  ||
+                        !strcmp(v, "do")     ||
+                        !strcmp(v, "var")    ||
+                        !strcmp(v, "return") ||
                         !strcmp(v, "const"))
                        lex->tok->ttype = TOKEN_KEYWORD;