diff options
| author | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-09-08 13:09:14 +0200 |
|---|---|---|
| committer | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-09-08 13:09:14 +0200 |
| commit | f1128b4d7fa58e16a2f0174e72cfbc48f260c6a7 (patch) | |
| tree | ddd3e03a9d5f397530c0402671e2f54bcbabf49b /tools | |
| parent | 9e3ca7b83888fdcf0228e1f71a91c07317d8a73f (diff) | |
fix for empty disabled_blocks and added test
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/comments.odin | 6 | ||||
| -rw-r--r-- | tools/odinfmt/tests/comments.odin | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/tools/odinfmt/tests/.snapshots/comments.odin b/tools/odinfmt/tests/.snapshots/comments.odin index 262d80e..5d7ffb7 100644 --- a/tools/odinfmt/tests/.snapshots/comments.odin +++ b/tools/odinfmt/tests/.snapshots/comments.odin @@ -40,3 +40,9 @@ bracket_comments_alignment :: proc() { // etc.. } } + +empty_odin_fmt_block :: proc() { + //odinfmt: disable + //a := 10 + //odinfmt: enable +} diff --git a/tools/odinfmt/tests/comments.odin b/tools/odinfmt/tests/comments.odin index a7bea72..6d0eb6f 100644 --- a/tools/odinfmt/tests/comments.odin +++ b/tools/odinfmt/tests/comments.odin @@ -39,4 +39,10 @@ bracket_comments_alignment :: proc() { a := 10 // etc.. } -}
\ No newline at end of file +} + +empty_odin_fmt_block :: proc() { + //odinfmt: disable + //a := 10 + //odinfmt: enable +} |