diff options
feat(php): php 8.4 support (#6741)
* chore(php): update maintainers
* feat(php): update php rules, highlight imported functions/consts
* feat(php): indent inside property hooks
* chore: update php and php_only revision
Diffstat (limited to 'tests/query/highlights/php/keywords.php')
| -rw-r--r-- | tests/query/highlights/php/keywords.php | 35 |
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; |
