diff options
| author | Caleb White <cdwhite3@pm.me> | 2024-08-18 05:30:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-18 12:30:04 +0200 |
| commit | ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631 (patch) | |
| tree | c7ba6a551dc8fa364104378872d2cad5ff0b6d9b /tests/query/highlights | |
| parent | bot(lockfile): update go, html, json, python, rust, swift, vhs (diff) | |
| download | nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.gz nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.bz2 nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.lz nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.xz nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.zst nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.zip | |
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')
| -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; |
