mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -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
|
|
@ -101,9 +101,9 @@
|
|||
|
||||
; Interop
|
||||
((sym_lit) @method
|
||||
(#match? @method "^\\.[^-]"))
|
||||
(#lua-match? @method "^[.][^-]"))
|
||||
((sym_lit) @field
|
||||
(#match? @field "^\\.-"))
|
||||
(#lua-match? @field "^[.]-"))
|
||||
((sym_lit) @field
|
||||
(#lua-match? @field "^[%u].*/.+"))
|
||||
(list_lit
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
(#any-of? @keyword.coroutine
|
||||
"alts!" "alts!!" "await" "await-for" "await1" "chan" "close!" "future" "go" "sync" "thread" "timeout" "<!" "<!!" ">!" ">!!"))
|
||||
((sym_lit) @keyword.function
|
||||
(#match? @keyword.function "^(defn|defn-|fn|fn[*])$"))
|
||||
(#any-of? @keyword.function "defn" "defn-" "fn" "fn*"))
|
||||
|
||||
; Comment
|
||||
((sym_lit) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue