summaryrefslogtreecommitdiff
path: root/queries/phpdoc/highlights.scm
diff options
context:
space:
mode:
authorMichael Härtl <haertl.mike@gmail.com>2022-01-24 11:38:51 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-01-24 11:47:11 +0100
commitd3dbd4590ea52e3ae4f7a6b280280f65b404cc79 (patch)
tree093e0c8b7025830c61f1532293930497f5e65ae8 /queries/phpdoc/highlights.scm
parent9e90866bcea3e392126c4eb90fde56b1c0b56b69 (diff)
fix(phpdoc) Improve keyword query
Diffstat (limited to 'queries/phpdoc/highlights.scm')
-rw-r--r--queries/phpdoc/highlights.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/phpdoc/highlights.scm b/queries/phpdoc/highlights.scm
index 047ee3aa..b0433da9 100644
--- a/queries/phpdoc/highlights.scm
+++ b/queries/phpdoc/highlights.scm
@@ -34,9 +34,9 @@
(email_address) @text.uri
)
-[
- "$"
- ">"
- "<"
- "|"
-]@keyword
+(type_list "|" @keyword)
+(variable_name "$" @keyword)
+(tag
+ (tag_name) @_tag_name
+ ["<" ">"] @keyword
+ (#eq? @_tag_name "@author"))