summaryrefslogtreecommitdiff
path: root/queries/php
diff options
context:
space:
mode:
authorWilman Barrios <wilmanbarrios@gmail.com>2022-02-19 13:20:22 -0400
committerStephan Seitz <stephan.seitz@fau.de>2022-02-19 18:26:05 +0100
commitc0783485e8bca0ada6fc2f65794f56ad8d1536eb (patch)
tree826a91eda80ebe95712d5f3defc11829fdf919d1 /queries/php
parent6ef19f9d9d3fdcbe0f042a896e35fd0e5322ce2a (diff)
highlights(php): highlight traits names as type
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm
index 4188a35e..25ff9c37 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -27,6 +27,8 @@
(class_constant_access_expression
. [(name) (qualified_name)] @type
(name) @constant)
+(trait_declaration
+ name: (name) @type)
; Functions, methods, constructors