aboutsummaryrefslogtreecommitdiffstats
path: root/queries/phpdoc
diff options
context:
space:
mode:
authorgbprod <contact@gb-prod.fr>2024-02-21 14:59:31 +0100
committerStephan Seitz <stephan.seitz@fau.de>2024-02-21 15:47:01 +0100
commitca46eb3ac96cd96e963895004589f0c9b2a44491 (patch)
treeb61fa732028b313458bb5d8c225e13c96c74c6be /queries/phpdoc
parentUpdate README (diff)
downloadnvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar.gz
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar.bz2
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar.lz
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar.xz
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.tar.zst
nvim-treesitter-ca46eb3ac96cd96e963895004589f0c9b2a44491.zip
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.
Diffstat (limited to 'queries/phpdoc')
-rw-r--r--queries/phpdoc/highlights.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/queries/phpdoc/highlights.scm b/queries/phpdoc/highlights.scm
index 418853813..3ebe4a66e 100644
--- a/queries/phpdoc/highlights.scm
+++ b/queries/phpdoc/highlights.scm
@@ -23,6 +23,13 @@
(parameter
(variable_name) @variable.parameter)
+[
+ (array_type)
+ (primitive_type)
+ (named_type)
+ (optional_type)
+] @type
+
(union_type
[
(array_type)