mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
"alias"
|
||||
"case"
|
||||
"catch"
|
||||
"cond"
|
||||
"else"
|
||||
"for"
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
[
|
||||
(arguments)
|
||||
(call)
|
||||
(do_block)
|
||||
(list)
|
||||
(map)
|
||||
(stab_expression)
|
||||
(tuple)
|
||||
] @indent
|
||||
|
||||
(stab_expression
|
||||
right: (_) @indent)
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"end"
|
||||
"}"
|
||||
(after_block)
|
||||
(catch_block)
|
||||
(else_block)
|
||||
(rescue_block)
|
||||
"do"
|
||||
"end"
|
||||
(catch_block)
|
||||
] @branch
|
||||
|
||||
(comment) @ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue