aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index d40013270..cf253a474 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -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