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