mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
feat(php): add support for new relative_name node
This commit is contained in:
parent
93ce9feb4f
commit
081a99b3be
4 changed files with 175 additions and 34 deletions
|
|
@ -2,49 +2,22 @@
|
|||
|
||||
namespace Foo\Bar;
|
||||
//^^^^^^^ @keyword.type
|
||||
// ^^^ @module
|
||||
// ^^^ @module
|
||||
|
||||
use Foo\Baz as Baaz;
|
||||
//^ @keyword.import
|
||||
// ^^^ @module
|
||||
// ^^^ @type
|
||||
// ^^ @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
|
||||
Bar,
|
||||
//^^^ @type
|
||||
function foo,
|
||||
//^^^^^^^^ @keyword.function
|
||||
// ^^^ @function
|
||||
const FOO,
|
||||
//^^^^^ @keyword.modifier
|
||||
// ^^^ @constant
|
||||
};
|
||||
|
||||
abstract class A
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue