From 6cb4098d51479f644f967c17d4482bab1ba2640f Mon Sep 17 00:00:00 2001 From: Caleb White Date: Thu, 2 Jan 2025 11:27:28 -0600 Subject: fix(php): properly highlight grouped imported functions and constants --- tests/query/highlights/php/keywords.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/query/highlights/php/keywords.php') diff --git a/tests/query/highlights/php/keywords.php b/tests/query/highlights/php/keywords.php index 6b938c43f..5504cab19 100644 --- a/tests/query/highlights/php/keywords.php +++ b/tests/query/highlights/php/keywords.php @@ -12,16 +12,28 @@ use Foo\Baz as Baaz; // ^^ @keyword.operator // ^^^^ @type.definition +use Foo\Baz\{Foo, Bar}; +// ^^^ @type +// ^^^ @type + use function Foo\foo as fooo; // ^^^^^^^^ @keyword.function // ^^^ @function // ^^^^ @function +use function Foo\{bar, baz}; +// ^^^ @function +// ^^^ @function + use const Foo\FOO as FOOO; // ^^^^^ @keyword.modifier // ^^^ @constant // ^^^^ @constant +use const Foo\{FOO, BAR}; +// ^^^ @constant +// ^^^ @constant + use Foo\Baz\{ // ^^^ @module // ^^^ @module -- cgit v1.2.3-70-g09d2