mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat(php): add highlights for scoped_property_access
This commit is contained in:
parent
925490e34d
commit
6f54846f2b
2 changed files with 13 additions and 0 deletions
|
|
@ -249,6 +249,16 @@
|
|||
]
|
||||
(name) @constant)
|
||||
|
||||
(scoped_property_access_expression
|
||||
scope: [
|
||||
(name) @type
|
||||
(qualified_name
|
||||
(name) @type)
|
||||
])
|
||||
|
||||
(scoped_property_access_expression
|
||||
name: (variable_name) @variable.member)
|
||||
|
||||
(trait_declaration
|
||||
name: (name) @type)
|
||||
|
||||
|
|
|
|||
|
|
@ -23,5 +23,8 @@ class A {
|
|||
// ^^^ @variable.member
|
||||
$this->foo(a: 5);
|
||||
// ^ @variable.parameter
|
||||
A::$foo::$bar;
|
||||
// ^^^ @variable.member
|
||||
// ^^^ @variable.member
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue