aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/php/keywords.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/php/keywords.php')
-rw-r--r--tests/query/highlights/php/keywords.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/query/highlights/php/keywords.php b/tests/query/highlights/php/keywords.php
index f3d3f95a7..6b938c43f 100644
--- a/tests/query/highlights/php/keywords.php
+++ b/tests/query/highlights/php/keywords.php
@@ -1,5 +1,40 @@
<?php
+namespace Foo\Bar;
+//^^^^^^^ @keyword.type
+// ^^^ @module
+// ^^^ @module
+
+use Foo\Baz as Baaz;
+//^ @keyword.import
+// ^^^ @module
+// ^^^ @type
+// ^^ @keyword.operator
+// ^^^^ @type.definition
+
+use function Foo\foo as fooo;
+// ^^^^^^^^ @keyword.function
+// ^^^ @function
+// ^^^^ @function
+
+use const Foo\FOO as FOOO;
+// ^^^^^ @keyword.modifier
+// ^^^ @constant
+// ^^^^ @constant
+
+use Foo\Baz\{
+// ^^^ @module
+// ^^^ @module
+ Bar,
+//^^^ @type
+ function foo,
+//^^^^^^^^ @keyword.function
+// ^^^ @function
+ const FOO,
+//^^^^^ @keyword.modifier
+// ^^^ @constant
+};
+
abstract class A
{
protected readonly static $a;