From ca46eb3ac96cd96e963895004589f0c9b2a44491 Mon Sep 17 00:00:00 2001 From: gbprod Date: Wed, 21 Feb 2024 14:59:31 +0100 Subject: 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. --- queries/phpdoc/highlights.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'queries/phpdoc') 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) -- cgit v1.2.3-70-g09d2