aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
authorWilman Barrios <wilmanbarrios@gmail.com>2022-02-19 13:44:00 -0400
committerStephan Seitz <stephan.seitz@fau.de>2022-02-19 20:00:31 +0100
commit6d44cc06f435cd42d71a4266f68166850a61bd99 (patch)
tree75132e6f0d6f16f68c815c43e8949625cd9012cc /queries/php
parentrefacto: expose a function to set custom capture for the higlighter (diff)
downloadnvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar.gz
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar.bz2
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar.lz
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar.xz
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.tar.zst
nvim-treesitter-6d44cc06f435cd42d71a4266f68166850a61bd99.zip
highlights(php): highlight use declaration name 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 25ff9c371..c9fbe2994 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -29,6 +29,8 @@
(name) @constant)
(trait_declaration
name: (name) @type)
+(use_declaration
+ (name) @type)
; Functions, methods, constructors