mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Update indents & fix catch highlights
This commit is contained in:
parent
886261a96b
commit
259e3f6e64
2 changed files with 5 additions and 14 deletions
|
|
@ -118,6 +118,7 @@
|
||||||
(call target: ((identifier) @keyword (#any-of? @keyword
|
(call target: ((identifier) @keyword (#any-of? @keyword
|
||||||
"alias"
|
"alias"
|
||||||
"case"
|
"case"
|
||||||
|
"catch"
|
||||||
"cond"
|
"cond"
|
||||||
"else"
|
"else"
|
||||||
"for"
|
"for"
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,18 @@
|
||||||
[
|
[
|
||||||
(arguments)
|
(arguments)
|
||||||
(call)
|
|
||||||
(do_block)
|
(do_block)
|
||||||
(list)
|
(list)
|
||||||
(map)
|
(map)
|
||||||
(stab_expression)
|
(tuple)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
(stab_expression
|
|
||||||
right: (_) @indent)
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
|
||||||
")"
|
")"
|
||||||
"{"
|
|
||||||
"}"
|
|
||||||
"["
|
|
||||||
"]"
|
"]"
|
||||||
|
"end"
|
||||||
|
"}"
|
||||||
(after_block)
|
(after_block)
|
||||||
(catch_block)
|
|
||||||
(else_block)
|
(else_block)
|
||||||
(rescue_block)
|
(rescue_block)
|
||||||
"do"
|
(catch_block)
|
||||||
"end"
|
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
(comment) @ignore
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue