From d11d35fb614cb58033b29de7b33832ae48d3e666 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 29 Aug 2022 23:46:40 +0200 Subject: highlights(hack): use `@function.call`/`@method.call` --- queries/hack/highlights.scm | 6 +++--- tests/query/highlights/xhp-intro.hack | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/queries/hack/highlights.scm b/queries/hack/highlights.scm index 9ec38266..0ae9a9bc 100644 --- a/queries/hack/highlights.scm +++ b/queries/hack/highlights.scm @@ -177,14 +177,14 @@ (variable) @parameter) (call_expression - function: (qualified_identifier (identifier) @function .)) + function: (qualified_identifier (identifier) @function.call .)) (call_expression - function: (scoped_identifier (identifier) @function .)) + function: (scoped_identifier (identifier) @function.call .)) (call_expression function: (selection_expression - (qualified_identifier (identifier) @method .))) + (qualified_identifier (identifier) @method.call .))) (qualified_identifier (_) @namespace . diff --git a/tests/query/highlights/xhp-intro.hack b/tests/query/highlights/xhp-intro.hack index cc25f584..9c03cad2 100644 --- a/tests/query/highlights/xhp-intro.hack +++ b/tests/query/highlights/xhp-intro.hack @@ -38,7 +38,7 @@ final xhp class a_post extends x\element { 'document.getElementById("'.$id.'").submit(); return false;', ); $anchor->setAttribute('href', '#'); - // ^ method + // ^ method.call return $form; } -- cgit v1.2.3