mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(ecma): use @method.call/function.call
This commit is contained in:
parent
c557c68729
commit
f66a911a95
2 changed files with 4 additions and 4 deletions
|
|
@ -83,11 +83,11 @@
|
|||
;--------------------------
|
||||
|
||||
(call_expression
|
||||
function: (identifier) @function)
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(call_expression
|
||||
function: (member_expression
|
||||
property: [(property_identifier) (private_property_identifier)] @method))
|
||||
property: [(property_identifier) (private_property_identifier)] @method.call))
|
||||
|
||||
; Variables
|
||||
;----------
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ class H {
|
|||
public_method() {
|
||||
// ^ method
|
||||
return this.#private_method();
|
||||
// ^ method
|
||||
// ^ method.call
|
||||
}
|
||||
|
||||
ok() {
|
||||
return this.public_method();
|
||||
// ^ method
|
||||
// ^ method.call
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue