From 0a76ba44062f69ed393214ce81d81b19964d9f49 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 25 Mar 2026 16:42:23 +0300 Subject: [PATCH] vfmt: fix first line after // vfmt off being replaced (fixes #23629) --- .../v/fmt/tests/vfmt_off_first_line_trailing_comment_keep.vv | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 vlib/v/fmt/tests/vfmt_off_first_line_trailing_comment_keep.vv diff --git a/vlib/v/fmt/tests/vfmt_off_first_line_trailing_comment_keep.vv b/vlib/v/fmt/tests/vfmt_off_first_line_trailing_comment_keep.vv new file mode 100644 index 000000000..ab76aa48c --- /dev/null +++ b/vlib/v/fmt/tests/vfmt_off_first_line_trailing_comment_keep.vv @@ -0,0 +1,5 @@ +fn main() { + // vfmt off + num := 4 // some comment + // vfmt on +} -- 2.39.5