From 404651ee41ba9b4d5d753f0869998df37d83e4d0 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 13 Sep 2025 11:49:29 -0400 Subject: Make assignment and value decl behaviour the same with long lines --- src/odin/printer/visit.odin | 2 +- tools/odinfmt/snapshot/snapshot.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index a3e8e83..882ba51 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1127,7 +1127,7 @@ visit_stmt :: proc( document = cons(document, nest_if_break(group(rhs), "assignments")) document = group(document) } else { - document = group(cons_with_opl(assign_document, group(rhs))) + document = group(cons_with_nopl(assign_document, group(rhs))) } case ^Expr_Stmt: document = cons(document, visit_expr(p, v.expr)) diff --git a/tools/odinfmt/snapshot/snapshot.odin b/tools/odinfmt/snapshot/snapshot.odin index 7f60897..3220845 100644 --- a/tools/odinfmt/snapshot/snapshot.odin +++ b/tools/odinfmt/snapshot/snapshot.odin @@ -106,7 +106,7 @@ snapshot_file :: proc(path: string) -> bool { } if s_ch != f_ch { - fmt.eprintf("\nFormatted file was different from snapshot file: %v", snapshot_path) + fmt.eprintf("\nFormatted file was different from snapshot file: %v\n", snapshot_path) os.write_entire_file(fmt.tprintf("%v_failed", snapshot_path), transmute([]u8)formatted) return false } -- cgit v1.2.3