properly fill the token string for TOKEN_ATTRIBUTE_*

This commit is contained in:
Wolfgang Bumiller 2012-12-22 18:09:17 +01:00
parent 2c2bfab8bc
commit b38b3b08bd

View file

@ -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);