aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
authorAnanda Umamil <zweimach@zweimach.org>2023-01-28 15:13:33 +0700
committerStephan Seitz <stephan.seitz@fau.de>2023-01-28 11:32:57 +0100
commitcf21f81274966b41b51b4022283d1e09c79aec49 (patch)
tree7a16c3dfdb92b415d2c1ea539c734b9955e05443 /queries/php
parentUse `@parameter` capture (diff)
downloadnvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar.gz
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar.bz2
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar.lz
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar.xz
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.tar.zst
nvim-treesitter-cf21f81274966b41b51b4022283d1e09c79aec49.zip
highlights(php): `instanceof` operand
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm
index 39592a554..2207fd8a1 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -32,6 +32,9 @@
name: (name) @type)
(use_declaration
(name) @type)
+(binary_expression
+ operator: "instanceof"
+ right: [(name) (qualified_name)] @type)
; Functions, methods, constructors