aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/highlights.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm
index 17c3f28f5..91a08cf95 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -78,8 +78,9 @@
((name) @constant
(#vim-match? @constant "^_?[A-Z][A-Z\d_]+$"))
-((name) @constructor
- (#lua-match? @constructor "^[A-Z]"))
+(method_declaration
+ name: (name) @constructor
+ (#eq? @constructor "__construct"))
(const_declaration (const_element (name) @constant))