From 5f20329e9605169a1818f237035ac0d515f0219b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 16 Dec 2020 10:08:27 +0100 Subject: [PATCH] Ruby highlights: Unify call and method_call (follow tree-sitter-ruby) --- queries/ruby/highlights.scm | 15 +++------------ 1 file 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)$"))