Browse Source

add proc to format multiline

Daniel Gavin 4 years ago
parent
commit
3464784e5e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/odin/printer/printer.odin

+ 2 - 1
core/odin/printer/printer.odin

@@ -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);