mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Update list of macros
This commit is contained in:
parent
8db7eeba9d
commit
c780ba9b6c
1 changed files with 14 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue