Update indents & fix catch highlights

This commit is contained in:
Connor Lay (Clay) 2021-10-06 14:36:22 -07:00 committed by Stephan Seitz
parent 886261a96b
commit 259e3f6e64
2 changed files with 5 additions and 14 deletions

View file

@ -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"

View file

@ -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