highlights(ruby): fix captures

This commit is contained in:
ObserverOfTime 2022-10-17 17:14:31 +03:00
parent 7d7feb859a
commit be2b89edc8

View file

@ -1,4 +1,5 @@
; Variables ; Variables
(identifier) @variable (identifier) @variable
(global_variable) @variable.global (global_variable) @variable.global
@ -51,8 +52,8 @@
(constant) @type (constant) @type
((identifier) @keyword ((identifier) @type.qualifier
(#vim-match? @keyword "^(private|protected|public)$")) (#any-of? @type.qualifier "private" "protected" "public"))
[ [
"rescue" "rescue"
@ -60,7 +61,7 @@
] @exception ] @exception
((identifier) @exception ((identifier) @exception
(#vim-match? @exception "^(fail|raise)$")) (#any-of? @exception "fail" "raise"))
; Function calls ; Function calls
@ -77,7 +78,7 @@
(program (program
(call (call
(identifier) @include) (identifier) @include)
(#vim-match? @include "^(require|require_relative|load)$")) (#any-of? @include "require" "require_relative" "load"))
; Function definitions ; Function definitions