mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
This commit is contained in:
parent
89fbb9b39e
commit
011ac894ec
20 changed files with 67 additions and 67 deletions
|
|
@ -27,11 +27,11 @@
|
|||
|
||||
;; Identifier naming conventions
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
(#lua-match? @type "^[A-Z]"))
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
(#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z][A-Z_0-9]*$") . (_))
|
||||
(#lua-match? @type "^[A-Z][A-Z_0-9]*$") . (_))
|
||||
|
||||
;; Functions
|
||||
(constructor_definition) @constructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue