From 072cd79a60410d3f2cc3cc5c12b86c461c462e85 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 17 Aug 2025 09:44:34 -0400 Subject: Process the rest of the comment group when encountering an odinfmt enable --- tools/odinfmt/tests/.snapshots/comments.odin | 7 +++++++ tools/odinfmt/tests/comments.odin | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'tools') diff --git a/tools/odinfmt/tests/.snapshots/comments.odin b/tools/odinfmt/tests/.snapshots/comments.odin index 9550b08..82ac2dd 100644 --- a/tools/odinfmt/tests/.snapshots/comments.odin +++ b/tools/odinfmt/tests/.snapshots/comments.odin @@ -78,3 +78,10 @@ Instruction :: struct { prefixes: LegacyPrefixes, operands: []Operand, } + +// odinfmt: disable +Bar :: struct{} +// odinfmt: enable + +// Foo doc +Foo :: struct {} diff --git a/tools/odinfmt/tests/comments.odin b/tools/odinfmt/tests/comments.odin index 658bc76..d9a5cf1 100644 --- a/tools/odinfmt/tests/comments.odin +++ b/tools/odinfmt/tests/comments.odin @@ -78,3 +78,10 @@ Instruction :: struct { prefixes: LegacyPrefixes, operands: []Operand, } + +// odinfmt: disable +Bar :: struct{} +// odinfmt: enable + +// Foo doc +Foo :: struct {} -- cgit v1.2.3