Fix AST output for several tokens

This commit is contained in:
Hackerpilot 2014-05-26 01:23:35 +00:00
parent d6a5cb4294
commit d8f4ed2307
1 changed files with 1 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ class XMLPrinter : ASTVisitor
case tok!"wstringLiteral": tagName = "wstringLiteral"; break;
case tok!"scriptLine": tagName = "scriptLine"; break;
case tok!"$": output.writeln("<dollar/>"); return;
default: tagName = "token"; break;
default: output.writeln("<", str(token.type), "/>"); return;
}
output.writeln("<", tagName, ">", xmlEscape(token.text), "</", tagName, ">");
}