add proc to format multiline

This commit is contained in:
Daniel Gavin
2021-04-19 19:41:53 +02:00
parent f1dc7c0b27
commit 3464784e5e

View File

@@ -413,7 +413,8 @@ format_generic :: proc(p: ^Printer) {
for format_token, token_index in line.format_tokens {
if format_token.kind == .For || format_token.kind == .If ||
format_token.kind == .When || format_token.kind == .Switch {
format_token.kind == .When || format_token.kind == .Switch ||
format_token.kind == .Proc {
format_keyword_to_brace(p, line_index, token_index, format_token.kind);
} else if format_token.type == .Call {
format_call(p, line_index, token_index);