Skip to content

Commit 73890d0

Browse files
committed
fix: extra space for param_long_flag of parameter
1 parent 47e8952 commit 73890d0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

languages/nu.scm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@
121121
(parameter_pipes) @append_space @append_spaced_softline
122122

123123
(parameter
124-
param_long_flag: _? @prepend_space
125-
.
126-
flag_capsule: _? @prepend_space
124+
flag_capsule: _ @prepend_space
127125
)
128126

129127
;; Comma/newline between parameters

test/expected_decl.nu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ module greetings {
6666
$"hi ($where)!"
6767
}
6868
};
69+
70+
# https://github.com/blindFS/topiary-nushell/issues/35
71+
def f [--arg1: number, --arg2: string] { }

test/input_decl.nu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ module greetings {
5858
$"hi ($where)!"
5959
}
6060
};
61+
62+
# https://github.com/blindFS/topiary-nushell/issues/35
63+
def f [--arg1: number, --arg2: string] {}

0 commit comments

Comments
 (0)