aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorhryx <codroid@gmail.com>2019-06-23 12:46:17 -0700
committerhryx <codroid@gmail.com>2019-06-23 12:46:17 -0700
commit226a23d97730b5ee0b14d51abb4999e679259ac3 (patch)
tree57872228c65584f5f9292c09c673fbd179487a2f /src/ast_render.cpp
parentc423697c78462f4e817869a3b25e72af33ce09ed (diff)
downloadzig-226a23d97730b5ee0b14d51abb4999e679259ac3.tar.gz
zig-226a23d97730b5ee0b14d51abb4999e679259ac3.zip
stage1: always render space after `fn` like stage2
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index d93efe2193..92508c2205 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -444,9 +444,8 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
const char *extern_str = extern_string(node->data.fn_proto.is_extern);
const char *export_str = export_string(node->data.fn_proto.is_export);
const char *inline_str = inline_string(node->data.fn_proto.is_inline);
- fprintf(ar->f, "%s%s%s%sfn", pub_str, inline_str, export_str, extern_str);
+ fprintf(ar->f, "%s%s%s%sfn ", pub_str, inline_str, export_str, extern_str);
if (node->data.fn_proto.name != nullptr) {
- fprintf(ar->f, " ");
print_symbol(ar, node->data.fn_proto.name);
}
fprintf(ar->f, "(");