mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
odinfmt
This commit is contained in:
@@ -486,7 +486,8 @@ align_var_decls :: proc(p: ^Printer) {
|
||||
if line.format_tokens[i].kind == .Proc ||
|
||||
line.format_tokens[i].kind == .Union ||
|
||||
line.format_tokens[i].kind == .Enum ||
|
||||
line.format_tokens[i].kind == .Struct {
|
||||
line.format_tokens[i].kind == .Struct ||
|
||||
line.format_tokens[i].kind == .For {
|
||||
continue_flag = true;
|
||||
}
|
||||
|
||||
@@ -503,7 +504,6 @@ align_var_decls :: proc(p: ^Printer) {
|
||||
|
||||
if p.config.align_style == .Align_On_Colon_And_Equals || !current_typed || current_not_mutable {
|
||||
for colon_token in colon_tokens {
|
||||
fmt.println(colon_token);
|
||||
colon_token.format_token.spaces_before = largest_lhs - colon_token.length + 1;
|
||||
}
|
||||
} else if p.config.align_style == .Align_On_Type_And_Equals {
|
||||
|
||||
Reference in New Issue
Block a user