From: Wolfgang Bumiller Date: Sat, 22 Dec 2012 17:09:17 +0000 (+0100) Subject: properly fill the token string for TOKEN_ATTRIBUTE_* X-Git-Tag: 0.2~12^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b38b3b08bd2f6a2f4a8f999f14d0c675220c3b5f;p=xonotic%2Fgmqcc.git properly fill the token string for TOKEN_ATTRIBUTE_* --- diff --git a/lexer.c b/lexer.c index fac62d4..17fe093 100644 --- a/lexer.c +++ b/lexer.c @@ -1117,6 +1117,7 @@ int lex_do(lex_file *lex) case '[': nextch = lex_getch(lex); if (nextch == '[') { + lex_tokench(lex, ch); lex_tokench(lex, nextch); lex_endtoken(lex); return (lex->tok.ttype = TOKEN_ATTRIBUTE_OPEN); @@ -1136,6 +1137,7 @@ int lex_do(lex_file *lex) case ']': nextch = lex_getch(lex); if (nextch == ']') { + lex_tokench(lex, ch); lex_tokench(lex, nextch); lex_endtoken(lex); return (lex->tok.ttype = TOKEN_ATTRIBUTE_CLOSE);