mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat(nu): add parser and queries (#7267)
This commit is contained in:
parent
509d38fee8
commit
604aa5a7c8
12 changed files with 449 additions and 0 deletions
26
queries/nu/indents.scm
Normal file
26
queries/nu/indents.scm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue