mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02: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
|
||||
(variable_name) @variable.parameter)
|
||||
|
||||
[
|
||||
(array_type)
|
||||
(primitive_type)
|
||||
(named_type)
|
||||
(optional_type)
|
||||
] @type
|
||||
|
||||
(union_type
|
||||
[
|
||||
(array_type)
|
||||
|
|
Loading…
Reference in a new issue