From f66a911a953729f79b1e523a5e950dfdece39902 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 29 Aug 2022 23:31:11 +0200 Subject: highlights(ecma): use `@method.call`/`function.call` --- queries/ecma/highlights.scm | 4 ++-- 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 1240dd4be..d05e4d5b8 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 e3c73d6ae..03081fb2b 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 } } -- cgit v1.2.3-70-g09d2