From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 22:24:39 +0000 (+0100) Subject: fix a lexer error which parsed !! as one operator X-Git-Tag: 0.1.9~219 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4a5517851b402fb869e49d57b1b109734c384bc;p=xonotic%2Fgmqcc.git fix a lexer error which parsed !! as one operator --- diff --git a/lexer.c b/lexer.c index 662e7e7..a3fb239 100644 --- a/lexer.c +++ b/lexer.c @@ -1164,7 +1164,7 @@ int lex_do(lex_file *lex) lex_tokench(lex, ch); nextch = lex_getch(lex); - if (nextch == ch || nextch == '=') { + if (nextch == '=' || (nextch == ch && ch != '!')) { lex_tokench(lex, nextch); } else if (ch == '-' && nextch == '>') { lex_tokench(lex, nextch);