]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Merge branch 'cooking' of github.com:graphitemaster/gmqcc into cooking
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 4235613680f4e78c9b6b5d097f1b3adaae687f12..97fcbf3f499a1c95c8e7ce72fefd26fe713bc582 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -1361,6 +1361,12 @@ int lex_do(lex_file *lex)
         return (lex->tok.ttype = TOKEN_OPERATOR);
     }
 
+    if (ch == '%') {
+        lex_tokench(lex, ch);
+        lex_endtoken(lex);
+        return (lex->tok.ttype = TOKEN_OPERATOR);
+    }
+
     if (isident_start(ch))
     {
         const char *v;