Merge branch 'main' of git.nbross.com:nielsbross/Ink-Shader-Language
# Conflicts: # AST.jai # Check.jai # module.jai
This commit is contained in:
5
AST.jai
5
AST.jai
@@ -367,7 +367,7 @@ pretty_print_node :: (node : *AST_Node, indentation : int, builder : *String_Bui
|
||||
pretty_print_node(body, indentation + 4, builder);
|
||||
// append(builder, ")");
|
||||
|
||||
if node.children.count == 3 {
|
||||
if node.children.count == 3 { //@Note: Else branch
|
||||
append(builder, "\n");
|
||||
pretty_print_node(node.children[2], indentation + 4, builder);
|
||||
}
|
||||
@@ -477,6 +477,9 @@ pretty_print_declaration :: (declaration : *AST_Node, indentation : int, builder
|
||||
print_to_builder(builder, " (@%)", hint.string_value);
|
||||
}
|
||||
}
|
||||
if declaration.kind != .If_Directive {
|
||||
print_to_builder(builder, "%", declaration.name);
|
||||
}
|
||||
}
|
||||
|
||||
if declaration.kind == .Function && declaration.token.kind == .TOKEN_IDENTIFIER{
|
||||
|
||||
Reference in New Issue
Block a user