From b38b3b08bd2f6a2f4a8f999f14d0c675220c3b5f Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 22 Dec 2012 18:09:17 +0100 Subject: [PATCH] properly fill the token string for TOKEN_ATTRIBUTE_* --- lexer.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2