Update list of macros

This commit is contained in:
sogaiu 2023-04-23 16:36:53 +09:00 committed by Amaan Qureshi
parent 8db7eeba9d
commit c780ba9b6c

View file

@ -104,12 +104,19 @@
(#any-of? @include "import" "require" "use")) (#any-of? @include "import" "require" "use"))
;; Builtin macros ;; Builtin macros
;;
;; (each name (all-bindings)
;; (when-let [info (dyn (symbol name))]
;; (when (info :macro)
;; (print name))))
((sym_lit) @function.macro ((sym_lit) @function.macro
(#any-of? @function.macro (#any-of? @function.macro
"++" "+=" "--" "%=" "*="
"++" "+="
"--" "-="
"->" "->>" "-?>" "-?>>" "->" "->>" "-?>" "-?>>"
"-=" "*=" "/=" "%=" "/="
"and" "as->" "as?->" "and" "as->" "as-macro" "as?->" "assert"
"case" "chr" "comment" "compif" "comptime" "compwhen" "cond" "coro" "case" "chr" "comment" "compif" "comptime" "compwhen" "cond" "coro"
"def-" "default" "defdyn" "defer" "defmacro" "defmacro-" "def-" "default" "defdyn" "defer" "defmacro" "defmacro-"
"defn" "defn-" "defn" "defn-"
@ -120,6 +127,7 @@
"ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread" "ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread"
"ev/with-deadline" "ev/with-deadline"
"ffi/defbind" "ffi/defbind"
"fiber-fn"
"for" "forever" "forv" "for" "forever" "forv"
"generate" "generate"
"if-let" "if-not" "if-with" "import" "if-let" "if-not" "if-with" "import"
@ -130,10 +138,10 @@
"prompt" "protect" "prompt" "protect"
"repeat" "repeat"
"seq" "short-fn" "seq" "short-fn"
"tabseq" "tracev" "try" "tabseq" "toggle" "tracev" "try"
"unless" "use" "unless" "use"
"var-" "var-" "varfn"
"when" "when-let" "when-with" "when" "when-let" "when-with"
"with" "with-dyns" "with-syms" "with-vars")) "with" "with-dyns" "with-syms" "with-vars"))
;; All builtin functions ;; All builtin functions