Skip to content

Commit

Permalink
chore: string test case update
Browse files Browse the repository at this point in the history
  • Loading branch information
blindFS committed Dec 15, 2024
1 parent 6f0657d commit 69758b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions languages/nu.scm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
;; keep empty lines
(_) @allow_blank_line_before

;; TODO: temp workaround for the whitespace issue
;; FIXME: temp workaround for the whitespace issue
[
":"
";"
Expand All @@ -36,8 +36,7 @@

(assignment
opr: _
rhs:
(pipeline
rhs: (pipeline
(pipe_element
(val_string
(raw_string_begin)
Expand Down Expand Up @@ -276,3 +275,4 @@
(record_body
entry: (record_entry) @append_space @prepend_spaced_softline
)

3 changes: 3 additions & 0 deletions test/expected_string.nu
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ const hybrid_help_cmd = (
string" +
($help_preview_cmd | str replace '{}' '(bar)')
)
mut foo = 'foo bar'
$foo += 'baz'
$foo += r#'baz'#
3 changes: 3 additions & 0 deletions test/input_string.nu
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ const hybrid_help_cmd = ("Multiline
string" +
($help_preview_cmd | str replace '{}' '(bar)')
)
mut foo = 'foo bar'
$foo += 'baz'
$foo += r#'baz'#

0 comments on commit 69758b9

Please sign in to comment.