diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-12-16 10:08:27 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-12-16 10:08:50 +0100 |
| commit | 5f20329e9605169a1818f237035ac0d515f0219b (patch) | |
| tree | 7f9e9c20958f91afdc8a50b56374fc84dc9ec9ac /queries/ruby | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar.gz nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar.bz2 nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar.lz nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar.xz nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.tar.zst nvim-treesitter-5f20329e9605169a1818f237035ac0d515f0219b.zip | |
Ruby highlights: Unify call and method_call (follow tree-sitter-ruby)
Diffstat (limited to 'queries/ruby')
| -rw-r--r-- | queries/ruby/highlights.scm | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index 44967e989..42535f5d9 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -63,24 +63,15 @@ "defined?" @function (call - [ - receiver: (constant) @type + receiver: (constant)? @type method: [ (identifier) (constant) ] @function - ]) - -(method_call - [ - method: [ - (identifier) - (constant) - ] @function - ]) + ) (program - (method_call + (call (identifier) @include) (#vim-match? @include "^(require|require_relative|load)$")) |
