]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fteqcc like \[ and \] in strings
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 13:18:45 +0000 (14:18 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 13:18:45 +0000 (14:18 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index e2cf8039fd628245a15d4ac0738775500f6cf4e1..a349e0efacf3fc79a9587a00de2d359cd9319545 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -820,6 +820,8 @@ static int GMQCC_WARN lex_finish_string(lex_file *lex, int quote)
             case '<':  ch = 29; break;
             case '-':  ch = 30; break;
             case '>':  ch = 31; break;
+            case '[':  ch = 16; break;
+            case ']':  ch = 17; break;
             case '\n':  ch = '\n'; break;
 
             default: