mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
fix(highlights): highlight @type in phpdoc
Currently, phpdoc types that are not union type are not highlighted, this change allows to apply `@type` group to all types.
This commit is contained in:
parent
977d94975d
commit
ca46eb3ac9
1 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,13 @@
|
||||||
(parameter
|
(parameter
|
||||||
(variable_name) @variable.parameter)
|
(variable_name) @variable.parameter)
|
||||||
|
|
||||||
|
[
|
||||||
|
(array_type)
|
||||||
|
(primitive_type)
|
||||||
|
(named_type)
|
||||||
|
(optional_type)
|
||||||
|
] @type
|
||||||
|
|
||||||
(union_type
|
(union_type
|
||||||
[
|
[
|
||||||
(array_type)
|
(array_type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue