aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
authorTravonteD <tman1300@aol.com>2020-09-18 09:11:32 -0400
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-18 15:14:32 +0200
commitb4abf6b07d1c4b99dd12118d16f72ffdc438fb53 (patch)
tree9584dd118a6f8ce7ffe361911195d061494cb119 /queries/ruby
parentMake :TSInstall work in Nix by adding a second module installation target (#473) (diff)
downloadnvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar.gz
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar.bz2
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar.lz
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar.xz
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.tar.zst
nvim-treesitter-b4abf6b07d1c4b99dd12118d16f72ffdc438fb53.zip
move the generic "constant" capture to the top
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index cef3d1f54..20b0a0ef2 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -39,6 +39,7 @@
"while"
] @repeat
+(constant) @constant
((identifier) @keyword
(#vim-match? @keyword "^(private|protected|public)$"))
@@ -52,7 +53,7 @@
(call
[
- receiver: (constant) @constant
+ receiver: (constant) @type
method: [
(identifier)
(constant)
@@ -61,7 +62,7 @@
(method_call
[
- receiver: (constant) @constant
+ receiver: (constant) @type
method: [
(identifier)
(constant)
@@ -85,6 +86,7 @@
(class name: (constant) @type)
(module name: (constant) @type)
+(superclass (constant) @type)
; Identifiers
[
@@ -98,8 +100,6 @@
((constant) @constant.macro
(#vim-match? @constant.macro "^[A-Z\\d_]+$"))
-(constant) @constant
-
[
(self)
(super)