mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
Ruby highlights: Unify call and method_call (follow tree-sitter-ruby)
This commit is contained in:
parent
74d3d815b6
commit
5f20329e96
1 changed files with 3 additions and 12 deletions
|
|
@ -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)$"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue