mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -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
|
|
@ -20,6 +20,6 @@
|
|||
(#any-of? @text.danger "FIXME" "XXX" "BUG"))
|
||||
|
||||
; Issue number (#123)
|
||||
("text" @number (#match? @number "^#[0-9]+$"))
|
||||
("text" @number (#lua-match? @number "^#[0-9]+$"))
|
||||
; User mention (@user)
|
||||
("text" @constant (#match? @constant "^[@][a-zA-Z0-9_-]+$"))
|
||||
("text" @constant (#lua-match? @constant "^[@][a-zA-Z0-9_-]+$"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue