From 146522f8f51f5100e567f4d7b3ff6eb50dc7588b Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 8 Apr 2026 11:24:27 -0700 Subject: [PATCH] Test multi-line recipe comments --- tests/format.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/format.rs b/tests/format.rs index 205cf6496a..c18a31a8c2 100644 --- a/tests/format.rs +++ b/tests/format.rs @@ -1763,3 +1763,24 @@ fn indentation_env() { .stdout("foo:\n echo bar\n") .success(); } + +#[test] +fn multi_line_comments_before_recipes_are_not_broken_up() { + Test::new() + .justfile( + " + # foo + # bar + baz: + ", + ) + .arg("--dump") + .stdout( + " + # foo + # bar + baz: + ", + ) + .success(); +}