feat(nu): add parser and queries (#7267)

This commit is contained in:
Abhishek Singh 2024-11-05 19:55:42 +05:30 committed by GitHub
parent 509d38fee8
commit 604aa5a7c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 449 additions and 0 deletions

26
queries/nu/indents.scm Normal file
View file

@ -0,0 +1,26 @@
; Forked from https://github.com/nushell/tree-sitter-nu
; Copyright (c) 2019 - 2022 The Nushell Project Developers
; Licensed under the MIT license.
[
(expr_parenthesized)
(parameter_bracks)
(val_record)
(val_list)
(val_closure)
(val_table)
(block)
] @indent.begin
[
"}"
"]"
")"
] @indent.end
[
"}"
"]"
")"
] @indent.branch
(comment) @indent.auto