mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
refactor: replace some match & vim-match usages
This commit is contained in:
parent
9ea7559ea9
commit
05fe2c38a3
7 changed files with 15 additions and 18 deletions
|
|
@ -60,7 +60,7 @@
|
|||
"next"
|
||||
] @repeat
|
||||
|
||||
(constant) @type
|
||||
(constant) @constant
|
||||
|
||||
((identifier) @type.qualifier
|
||||
(#any-of? @type.qualifier "private" "protected" "public"))
|
||||
|
|
@ -116,10 +116,10 @@
|
|||
] @label
|
||||
|
||||
((identifier) @constant.builtin
|
||||
(#vim-match? @constant.builtin "^__(callee|dir|id|method|send|ENCODING|FILE|LINE)__$"))
|
||||
(#match? @constant.builtin "^__(callee|dir|id|method|send|ENCODING|FILE|LINE)__$"))
|
||||
|
||||
((constant) @type
|
||||
(#vim-match? @type "^[A-Z\\d_]+$"))
|
||||
(#not-lua-match? @type "^[A-Z0-9_]+$"))
|
||||
|
||||
[
|
||||
(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue