diff options
| author | sogaiu <983021772@users.noreply.github.com> | 2023-04-23 16:36:53 +0900 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-04-30 22:06:17 -0400 |
| commit | c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3 (patch) | |
| tree | b8e3d16a3aec7aab5ff62b52fdae3d30213006cd /queries/janet_simple | |
| parent | Use 2 semicolons for better editor interop (diff) | |
| download | nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar.gz nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar.bz2 nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar.lz nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar.xz nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.tar.zst nvim-treesitter-c780ba9b6c6b0ffc94d8767f2e1fc062d627dac3.zip | |
Update list of macros
Diffstat (limited to 'queries/janet_simple')
| -rw-r--r-- | queries/janet_simple/highlights.scm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/queries/janet_simple/highlights.scm b/queries/janet_simple/highlights.scm index 401433d08..459c132e3 100644 --- a/queries/janet_simple/highlights.scm +++ b/queries/janet_simple/highlights.scm @@ -104,12 +104,19 @@ (#any-of? @include "import" "require" "use")) ;; Builtin macros +;; +;; (each name (all-bindings) +;; (when-let [info (dyn (symbol name))] +;; (when (info :macro) +;; (print name)))) ((sym_lit) @function.macro (#any-of? @function.macro - "++" "+=" "--" + "%=" "*=" + "++" "+=" + "--" "-=" "->" "->>" "-?>" "-?>>" - "-=" "*=" "/=" "%=" - "and" "as->" "as?->" + "/=" + "and" "as->" "as-macro" "as?->" "assert" "case" "chr" "comment" "compif" "comptime" "compwhen" "cond" "coro" "def-" "default" "defdyn" "defer" "defmacro" "defmacro-" "defn" "defn-" @@ -120,6 +127,7 @@ "ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread" "ev/with-deadline" "ffi/defbind" + "fiber-fn" "for" "forever" "forv" "generate" "if-let" "if-not" "if-with" "import" @@ -130,10 +138,10 @@ "prompt" "protect" "repeat" "seq" "short-fn" - "tabseq" "tracev" "try" + "tabseq" "toggle" "tracev" "try" "unless" "use" - "var-" - "when" "when-let" "when-with" + "var-" "varfn" + "when" "when-let" "when-with" "with" "with-dyns" "with-syms" "with-vars")) ;; All builtin functions |
