X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.c;h=97fcbf3f499a1c95c8e7ce72fefd26fe713bc582;hp=4235613680f4e78c9b6b5d097f1b3adaae687f12;hb=cb0169a78426648c951597d858aadd95040f4c05;hpb=d3c7b6fb3997256722ec0ea66bad733f0729ebba diff --git a/lexer.c b/lexer.c index 4235613..97fcbf3 100644 --- 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;