mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat: add powershell language
This commit is contained in:
parent
4ee9f12ff5
commit
c5b3560306
8 changed files with 500 additions and 0 deletions
41
queries/powershell/indents.scm
Normal file
41
queries/powershell/indents.scm
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
(function_statement
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(param_block
|
||||
[
|
||||
"param"
|
||||
"("
|
||||
")"
|
||||
] @indent.branch) @indent.begin
|
||||
|
||||
(script_block_expression
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(statement_block
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(switch_body
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(array_expression
|
||||
")" @indent.branch) @indent.begin
|
||||
|
||||
(hash_literal_expression
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(class_statement
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
(class_method_definition
|
||||
"}" @indent.branch) @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
] @indent.end
|
||||
|
||||
[
|
||||
(comment)
|
||||
(string_literal)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue