mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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 {
|
for format_token, token_index in line.format_tokens {
|
||||||
|
|
||||||
if format_token.kind == .For || format_token.kind == .If ||
|
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);
|
format_keyword_to_brace(p, line_index, token_index, format_token.kind);
|
||||||
} else if format_token.type == .Call {
|
} else if format_token.type == .Call {
|
||||||
format_call(p, line_index, token_index);
|
format_call(p, line_index, token_index);
|
||||||
|
|||||||
Reference in New Issue
Block a user