mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
fix bugs
This commit is contained in:
@@ -306,6 +306,10 @@ format_call :: proc(p: ^Printer, line_index: int, format_index: int) {
|
|||||||
|
|
||||||
for format_token, i in line.format_tokens {
|
for format_token, i in line.format_tokens {
|
||||||
|
|
||||||
|
if format_token.kind == .Comment {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if line_index == 0 && i <= paren_token_index {
|
if line_index == 0 && i <= paren_token_index {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -368,6 +372,14 @@ format_keyword_to_brace :: proc(p: ^Printer, line_index: int, format_index: int,
|
|||||||
|
|
||||||
for format_token, i in line.format_tokens {
|
for format_token, i in line.format_tokens {
|
||||||
|
|
||||||
|
if format_token.kind == .Comment {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if line_index == 0 && i <= format_index {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if format_token.kind == .Open_Brace {
|
if format_token.kind == .Open_Brace {
|
||||||
brace_count += 1;
|
brace_count += 1;
|
||||||
} else if format_token.kind == .Close_Brace {
|
} else if format_token.kind == .Close_Brace {
|
||||||
|
|||||||
Reference in New Issue
Block a user