diff options
| author | TravonteD <tman1300@aol.com> | 2020-09-18 09:11:32 -0400 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-18 15:14:32 +0200 |
| commit | b4abf6b07d1c4b99dd12118d16f72ffdc438fb53 (patch) | |
| tree | 9584dd118a6f8ce7ffe361911195d061494cb119 | |
| parent | Make :TSInstall work in Nix by adding a second module installation target (#473) (diff) | |
| download | nvim-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
| -rw-r--r-- | queries/ruby/highlights.scm | 8 |
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) |
