Fix bug in AST output
This commit is contained in:
parent
987d2552f2
commit
3b6de50058
|
@ -1318,6 +1318,7 @@ class XMLPrinter : ASTVisitor
|
|||
case tok!"wstringLiteral": tagName = "wstringLiteral"; break;
|
||||
case tok!"scriptLine": tagName = "scriptLine"; break;
|
||||
case tok!"$": output.writeln("<dollar/>"); return;
|
||||
case tok!".": output.writeln("<dot/>"); return;
|
||||
default: output.writeln("<", str(token.type), "/>"); return;
|
||||
}
|
||||
output.writeln("<", tagName, ">", xmlEscape(token.text), "</", tagName, ">");
|
||||
|
|
Loading…
Reference in New Issue