mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
Use #any-of? instead of #match? where posible
This commit is contained in:
parent
55c5620aa3
commit
c699cc2e47
9 changed files with 31 additions and 15 deletions
|
|
@ -38,7 +38,11 @@
|
|||
(sym_lit) @function.macro
|
||||
.
|
||||
(sym_lit) @function
|
||||
(#match? @function.macro "^(declare|def|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defprotocol|defstruct|deftype|ns)$"))
|
||||
(#any-of? @function.macro
|
||||
"declare" "def" "definline" "definterface"
|
||||
"defmacro" "defmethod" "defmulti" "defn"
|
||||
"defn-" "defonce" "defprotocol" "defstruct"
|
||||
"deftype" "ns"))
|
||||
|
||||
;; other macros
|
||||
(list_lit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue