Skip to content

Commit 1bf9879

Browse files
authored
update nushell parser and queries (#14377)
1 parent 23a647a commit 1bf9879

File tree

7 files changed

+500
-225
lines changed

7 files changed

+500
-225
lines changed

book/src/generated/lang-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
| nickel || || | | `nls` |
178178
| nim |||| | | `nimlangserver` |
179179
| nix |||| || `nil`, `nixd` |
180-
| nu || | | | | `nu` |
180+
| nu || | | | | `nu` |
181181
| nunjucks || | | | | |
182182
| ocaml || || | | `ocamllsp` |
183183
| ocaml-interface || | | | | `ocamllsp` |

languages.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ language-servers = [ "nu-lsp" ]
24122412

24132413
[[grammar]]
24142414
name = "nu"
2415-
source = { git = "https://github.com/nushell/tree-sitter-nu", rev = "358c4f509eb97f0148bbd25ad36acc729819b9c1" }
2415+
source = { git = "https://github.com/nushell/tree-sitter-nu", rev = "cc4624fbc6ec3563d98fbe8f215a8b8e10b16f32" }
24162416

24172417
[[language]]
24182418
name = "vala"

runtime/queries/nu/folds.scm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
(attribute_list)
3+
(block)
4+
(command_list)
5+
(parameter_bracks)
6+
(record_body)
7+
(val_list)
8+
(val_table)
9+
(val_closure)
10+
] @fold

0 commit comments

Comments
 (0)