mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -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
|
||||
|
||||
(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)$"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue