aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-17 09:44:34 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-17 09:44:34 -0400
commit072cd79a60410d3f2cc3cc5c12b86c461c462e85 (patch)
tree641c627fd1a7801850cf425221a5bcde64c9aae8 /tools
parent6e84221ba93f95a903c3a3afc4820e4a613898ec (diff)
Process the rest of the comment group when encountering an odinfmt enable
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/.snapshots/comments.odin7
-rw-r--r--tools/odinfmt/tests/comments.odin7
2 files changed, 14 insertions, 0 deletions
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 {}