aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
authorAnanda Umamil <zweimach@zweimach.org>2023-01-30 05:05:44 +0700
committerStephan Seitz <stephan.seitz@fau.de>2023-02-12 01:23:19 -0800
commit4e26fec0747c4d507bbd068c9c5584eb2de6e839 (patch)
tree3d4535cf964e2b662de4d385d1ab90a2a1868155 /queries/php
parenthighlights(php): remove typedef capture from `as` (diff)
downloadnvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar.gz
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar.bz2
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar.lz
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar.xz
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.tar.zst
nvim-treesitter-4e26fec0747c4d507bbd068c9c5584eb2de6e839.zip
highlights(php): use `lua-match?`
Co-authored-by: Stephan Seitz <stephan.seitz@fau.de>
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm
index da2334f83..4b524b018 100644
--- a/queries/php/highlights.scm
+++ b/queries/php/highlights.scm
@@ -5,9 +5,9 @@
; Constants
((name) @constant
- (#vim-match? @constant "^_?[A-Z][A-Z\d_]*$"))
+ (#lua-match? @constant "^_?[A-Z][A-Z%d_]*$"))
((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))