Use #any-of? instead of #match? where posible

This commit is contained in:
Joakker 2021-06-24 14:45:31 -04:00 committed by Stephan Seitz
parent 55c5620aa3
commit c699cc2e47
9 changed files with 31 additions and 15 deletions

View file

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