diff --git a/src/lexer.rs b/src/lexer.rs index bbec4bb..9b1e181 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -1431,6 +1431,22 @@ mod tests { ), } + test! { + name: interpolation_raw_multiline_string, + text: "hello:\n echo {{'\n'}}", + tokens: ( + Identifier:"hello", + Colon, + Eol, + Indent:" ", + Text:"echo ", + InterpolationStart, + StringRaw:"'\n'", + InterpolationEnd, + Dedent, + ), + } + test! { name: tokenize_names, text: " diff --git a/tests/misc.rs b/tests/misc.rs index e9e3c17..eb9ef9e 100644 --- a/tests/misc.rs +++ b/tests/misc.rs @@ -2452,6 +2452,19 @@ test! { ", } +test! { + name: multi_line_string_in_interpolation, + justfile: " + foo: + echo {{'a + echo b + echo c'}}z + echo baz + ", + stdout: "a\nb\ncz\nbaz\n", + stderr: "echo a\n echo b\n echo cz\necho baz\n", +} + #[cfg(windows)] test! { name: windows_interpreter_path_no_base,