mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
highlights(php): use lua-match?
Co-authored-by: Stephan Seitz <stephan.seitz@fau.de>
This commit is contained in:
parent
0c6835ce5e
commit
4e26fec074
1 changed files with 2 additions and 2 deletions
|
|
@ -5,9 +5,9 @@
|
||||||
; Constants
|
; Constants
|
||||||
|
|
||||||
((name) @constant
|
((name) @constant
|
||||||
(#vim-match? @constant "^_?[A-Z][A-Z\d_]*$"))
|
(#lua-match? @constant "^_?[A-Z][A-Z%d_]*$"))
|
||||||
((name) @constant.builtin
|
((name) @constant.builtin
|
||||||
(#vim-match? @constant.builtin "^__[A-Z][A-Z\d_]+__$"))
|
(#lua-match? @constant.builtin "^__[A-Z][A-Z%d_]+__$"))
|
||||||
|
|
||||||
(const_declaration (const_element (name) @constant))
|
(const_declaration (const_element (name) @constant))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue