mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -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
|
((name) @constant
|
||||||
(#vim-match? @constant "^_?[A-Z][A-Z\d_]+$"))
|
(#vim-match? @constant "^_?[A-Z][A-Z\d_]+$"))
|
||||||
|
|
||||||
((name) @constructor
|
(method_declaration
|
||||||
(#lua-match? @constructor "^[A-Z]"))
|
name: (name) @constructor
|
||||||
|
(#eq? @constructor "__construct"))
|
||||||
|
|
||||||
(const_declaration (const_element (name) @constant))
|
(const_declaration (const_element (name) @constant))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue