aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 3beff6b1..d4cf4140 100644
--- a/ast.c
+++ b/ast.c
@@ -97,7 +97,7 @@ CORD ast_to_xml(ast_t *ast)
T(Unknown, "<Unknown>")
T(Nil, "<Nil>%r</Nil>", type_ast_to_xml(data.type))
T(Bool, "<Bool value=\"%s\" />", data.b ? "yes" : "no")
- T(Var, "%s", data.name)
+ T(Var, "<Var>%s</Var>", data.name)
T(Int, "<Int bits=\"%ld\">%ld</Int>", data.bits, data.i)
T(Num, "<Num bits=\"%ld\">%g</Num>", data.bits, data.n)
T(TextLiteral, "%r", xml_escape(data.cord))