Ruby highlights: Unify call and method_call (follow tree-sitter-ruby)

This commit is contained in:
Stephan Seitz 2020-12-16 10:08:27 +01:00 committed by Stephan Seitz
parent 74d3d815b6
commit 5f20329e96

View file

@ -63,24 +63,15 @@
"defined?" @function "defined?" @function
(call (call
[ receiver: (constant)? @type
receiver: (constant) @type
method: [ method: [
(identifier) (identifier)
(constant) (constant)
] @function ] @function
]) )
(method_call
[
method: [
(identifier)
(constant)
] @function
])
(program (program
(method_call (call
(identifier) @include) (identifier) @include)
(#vim-match? @include "^(require|require_relative|load)$")) (#vim-match? @include "^(require|require_relative|load)$"))