mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(php): properly highlight grouped imported functions and constants
This commit is contained in:
parent
fc687f38d4
commit
6cb4098d51
2 changed files with 34 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue