aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2025-01-02 11:27:28 -0600
committerChristian Clason <ch.clason+github@icloud.com>2025-01-02 19:13:44 +0100
commit6cb4098d51479f644f967c17d4482bab1ba2640f (patch)
tree3b10e261dc3056e4a7d001ad420dccc154f1bf02 /tests
parentbot(lockfile): update gdscript, qmljs (diff)
downloadnvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar.gz
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar.bz2
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar.lz
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar.xz
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.tar.zst
nvim-treesitter-6cb4098d51479f644f967c17d4482bab1ba2640f.zip
fix(php): properly highlight grouped imported functions and constants
Diffstat (limited to 'tests')
-rw-r--r--tests/query/highlights/php/keywords.php12
1 files changed, 12 insertions, 0 deletions
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