refactor: replace some match & vim-match usages

This commit is contained in:
ObserverOfTime 2023-08-23 14:09:30 +03:00
parent 9ea7559ea9
commit 05fe2c38a3
7 changed files with 15 additions and 18 deletions

View file

@ -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