diff options
| author | Infectos <infectos@yandex.ru> | 2022-01-14 15:28:50 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 12:02:24 +0100 |
| commit | 1da55c27ccb476194599f46d2ef832c73944d334 (patch) | |
| tree | d3a4c87c409aa986976d9e1e711e9896fcfeea37 | |
| parent | 316b32b3db6960264ec65f60c8f1fee12f336b42 (diff) | |
fix(php): change query for @constructor group
| -rw-r--r-- | queries/php/highlights.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm index 17c3f28f..91a08cf9 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)) |
