mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
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
This commit is contained in:
parent
24ddf60d68
commit
ec8776ed9e
9 changed files with 85 additions and 13 deletions
|
|
@ -221,10 +221,26 @@
|
|||
(name) @type
|
||||
(qualified_name
|
||||
(name) @type)
|
||||
alias: (name) @type.definition
|
||||
])
|
||||
|
||||
(namespace_aliasing_clause
|
||||
(name) @type.definition)
|
||||
(namespace_use_clause
|
||||
type: "function"
|
||||
[
|
||||
(name) @function
|
||||
(qualified_name
|
||||
(name) @function)
|
||||
alias: (name) @function
|
||||
])
|
||||
|
||||
(namespace_use_clause
|
||||
type: "const"
|
||||
[
|
||||
(name) @constant
|
||||
(qualified_name
|
||||
(name) @constant)
|
||||
alias: (name) @constant
|
||||
])
|
||||
|
||||
(class_interface_clause
|
||||
[
|
||||
|
|
@ -369,9 +385,8 @@
|
|||
name: (namespace_name
|
||||
(name) @module))
|
||||
|
||||
(namespace_name_as_prefix
|
||||
(namespace_name
|
||||
(name) @module))
|
||||
(namespace_name
|
||||
(name) @module)
|
||||
|
||||
; Attributes
|
||||
(attribute_list) @attribute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue