mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
fix(php): change query for @constructor group
This commit is contained in:
parent
316b32b3db
commit
1da55c27cc
1 changed files with 3 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue