mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md adjust indents for bass fix doc capture comment
This commit is contained in:
parent
b4fcc61175
commit
cb568af539
80 changed files with 592 additions and 575 deletions
|
|
@ -15,39 +15,39 @@
|
|||
(foreach_statement)
|
||||
; (try_statement)
|
||||
(catch_statement)
|
||||
] @indent
|
||||
] @indent.begin
|
||||
|
||||
(
|
||||
(if_statement)
|
||||
(ERROR "else") @indent
|
||||
(ERROR "else") @indent.begin
|
||||
)
|
||||
|
||||
(if_statement
|
||||
condition: (_) @indent)
|
||||
condition: (_) @indent.begin)
|
||||
|
||||
(if_statement
|
||||
consequence: (_)
|
||||
(else_statement) @indent)
|
||||
(else_statement) @indent.begin)
|
||||
|
||||
(do_while_statement
|
||||
"do"
|
||||
(_) @indent)
|
||||
(_) @indent.begin)
|
||||
|
||||
(try_statement
|
||||
(_) @indent
|
||||
(catch_statement) @indent)
|
||||
(_) @indent.begin
|
||||
(catch_statement) @indent.begin)
|
||||
|
||||
[ "{" "}" ] @branch
|
||||
[ "{" "}" ] @indent.branch
|
||||
|
||||
[ "(" ")" ] @branch
|
||||
[ "(" ")" ] @indent.branch
|
||||
|
||||
[ "[" "]" ] @branch
|
||||
[ "[" "]" ] @indent.branch
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
"]"
|
||||
] @indent_end
|
||||
] @indent.end
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
|
|
@ -55,4 +55,4 @@
|
|||
|
||||
(string)
|
||||
(verbatim_string)
|
||||
] @auto
|
||||
] @indent.auto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue