Fix AST output for several tokens
This commit is contained in:
parent
d6a5cb4294
commit
d8f4ed2307
|
@ -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, ">");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue