Skip to content

Commit fd78be3

Browse files
authored
fix: extra space for param_long_flag of parameter (#36)
1 parent 82966d7 commit fd78be3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

languages.ncl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extensions = ["nu"],
55
grammar.source.git = {
66
git = "https://github.com/nushell/tree-sitter-nu.git",
7-
rev = "74ff80b2cff6d68286747a3de45531965ad2cf38",
7+
rev = "18b7f951e0c511f854685dfcc9f6a34981101dd6",
88
},
99
},
1010
},

languages/nu.scm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@
140140
)
141141

142142
(parameter
143-
param_long_flag: _? @prepend_space
144-
.
145-
flag_capsule: _? @prepend_space
143+
flag_capsule: _ @prepend_space
146144
)
147145

148146
(parameter

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)