mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
add proc to format multiline
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user