diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-29 23:31:11 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-09-11 04:16:06 -0700 |
| commit | f66a911a953729f79b1e523a5e950dfdece39902 (patch) | |
| tree | 8f6099044155e372888a2e271cc9ab35dc6718d0 | |
| parent | c557c68729eba7e02166f57b529fe3c0d3c447bb (diff) | |
highlights(ecma): use `@method.call`/`function.call`
| -rw-r--r-- | queries/ecma/highlights.scm | 4 | ||||
| -rw-r--r-- | tests/query/highlights/ecma/test.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 1240dd4b..d05e4d5b 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -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 ;---------- diff --git a/tests/query/highlights/ecma/test.ts b/tests/query/highlights/ecma/test.ts index e3c73d6a..03081fb2 100644 --- a/tests/query/highlights/ecma/test.ts +++ b/tests/query/highlights/ecma/test.ts @@ -15,11 +15,11 @@ class H { public_method() { // ^ method return this.#private_method(); - // ^ method + // ^ method.call } ok() { return this.public_method(); - // ^ method + // ^ method.call } } |
