Skip to content

Commit d3d6650

Browse files
committed
fix: topiary 0.7.0 required! keep trailing newlines in raw string contents in string interpolation
1 parent 93eada1 commit d3d6650

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
## Setup
2222

23-
1. Install topiary-cli using whatever package-manager on your system (0.6.1+ required)
23+
1. Install topiary-cli using whatever package-manager on your system (0.7.0+ required)
2424

2525
```nushell
2626
# e.g. installing with cargo

languages/nu.scm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
(path)
1919
] @leaf
2020

21-
;; TODO: new feature of the next topiary release
22-
;; (unescaped_interpolated_content) @keep_whitespaces
21+
(unescaped_interpolated_content) @keep_whitespace
2322

2423
;; keep empty lines
2524
(_) @allow_blank_line_before

test/expected_string.nu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ const hybrid_help_cmd = (
1515
mut foo = 'foo bar'
1616
$foo += 'baz'
1717
$foo += r#'baz'#
18+
19+
# https://github.com/blindFS/topiary-nushell/issues/28
20+
$'
21+
22+
(1)'

test/input_string.nu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ const hybrid_help_cmd = ("Multiline
1414
mut foo = 'foo bar'
1515
$foo += 'baz'
1616
$foo += r#'baz'#
17+
18+
# https://github.com/blindFS/topiary-nushell/issues/28
19+
$'
20+
21+
(1)'

0 commit comments

Comments
 (0)