From 7d938c1c72ac21cd059ed9a71d50f1329b33d988 Mon Sep 17 00:00:00 2001 From: Caleb White Date: Mon, 18 Mar 2024 22:42:44 -0500 Subject: fix(php): fix use_{as,instead_of}_clause highlights --- tests/query/highlights/php/keywords.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/query/highlights/php/keywords.php b/tests/query/highlights/php/keywords.php index e11a9f351..4bacf1c9d 100644 --- a/tests/query/highlights/php/keywords.php +++ b/tests/query/highlights/php/keywords.php @@ -96,9 +96,20 @@ class B extends A implements T U::small insteadof T; // ^ @type // ^^ @operator -// ^^^^^ @constant +// ^^^^^ @function.method // ^^^^^^^^^ @keyword // ^ @type + T::big as protected tBig; +// ^ @type +// ^^^ @function.method +// ^^ @keyword.operator +// ^^^^^^^^^ @keyword.modifier +// ^^^^ @function.method + big as private tBig; +// ^^^ @function.method +// ^^ @keyword.operator +// ^^^^^^^^^ @keyword.modifier +// ^^^^ @function.method } public function foo(callable $call): self // ^^^^^^^^ @type.builtin @@ -106,7 +117,7 @@ class B extends A implements T { $call instanceof Closure; // ^^^^^ @variable -// ^^^^^^^^^^ @keyword +// ^^^^^^^^^^ @keyword.operator // ^^^^^^^ @type fn ($a, $b) => $a + $b; // ^^ @keyword.function @@ -147,7 +158,7 @@ class B extends A implements T print("a"); // ^^^^^ @keyword exit; -// ^^^^ @keyword +// ^^^^ @keyword.return exit(); // ^^^^ @function.builtin exit(1); -- cgit v1.2.3-70-g09d2