mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00: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
|
(call_expression
|
||||||
function: (identifier) @function)
|
function: (identifier) @function.call)
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (member_expression
|
function: (member_expression
|
||||||
property: [(property_identifier) (private_property_identifier)] @method))
|
property: [(property_identifier) (private_property_identifier)] @method.call))
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
;----------
|
;----------
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ class H {
|
||||||
public_method() {
|
public_method() {
|
||||||
// ^ method
|
// ^ method
|
||||||
return this.#private_method();
|
return this.#private_method();
|
||||||
// ^ method
|
// ^ method.call
|
||||||
}
|
}
|
||||||
|
|
||||||
ok() {
|
ok() {
|
||||||
return this.public_method();
|
return this.public_method();
|
||||||
// ^ method
|
// ^ method.call
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue