aboutsummaryrefslogtreecommitdiffstats
path: root/queries/clojure
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-02-24 06:37:45 -0500
committerStephan Seitz <stephan.seitz@fau.de>2023-03-03 07:07:52 -0800
commit33ba346e60c3151fcdafc55d0e547556dc803c03 (patch)
treed1c5467293ca8fe4b0f44f05f4d4aa303877a2f8 /queries/clojure
parentdocs: add `@keyword.coroutine` (diff)
downloadnvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.gz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.bz2
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.lz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.xz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.zst
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.zip
feat!: add `@keyword.coroutine` capture
Diffstat (limited to 'queries/clojure')
-rw-r--r--queries/clojure/highlights.scm14
1 files changed, 8 insertions, 6 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm
index 00a692521..e5609b25b 100644
--- a/queries/clojure/highlights.scm
+++ b/queries/clojure/highlights.scm
@@ -112,6 +112,9 @@
"deftype"))
((sym_lit) @keyword
(#eq? @keyword "declare"))
+((sym_name) @keyword.coroutine
+ (#any-of? @keyword.coroutine
+ "alts!" "alts!!" "await" "await-for" "await1" "chan" "close!" "future" "go" "sync" "thread" "timeout" "<!" "<!!" ">!" ">!!"))
((sym_lit) @keyword.function
(#match? @keyword.function "^(defn|defn-|fn|fn[*])$"))
@@ -148,13 +151,13 @@
(#any-of? @function.macro
"." ".." "->" "->>" "amap" "areduce" "as->" "assert"
"binding" "bound-fn" "delay" "do" "dosync"
- "doto" "extend-protocol" "extend-type" "future"
+ "doto" "extend-protocol" "extend-type"
"gen-class" "gen-interface" "io!" "lazy-cat"
"lazy-seq" "let" "letfn" "locking" "memfn" "monitor-enter"
"monitor-exit" "proxy" "proxy-super" "pvalues"
- "refer-clojure" "reify" "set!" "some->" "some->>" "sync"
+ "refer-clojure" "reify" "set!" "some->" "some->>"
"time" "unquote" "unquote-splicing" "var" "vswap!"
- "ex-cause" "ex-data" "ex-message"))
+ "ex-cause" "ex-data" "ex-message"))
((sym_lit) @function.macro
(#match? @function.macro "^with\\-.*$"))
@@ -175,9 +178,8 @@
"any?" "apply" "array-map" "aset" "aset-boolean" "aset-byte"
"aset-char" "aset-double" "aset-float" "aset-int"
"aset-long" "aset-short" "assoc" "assoc!" "assoc-in"
- "associative?" "atom" "await" "await-for" "await1"
- "bases" "bean" "bigdec" "bigint" "biginteger" "bit-and"
- "bit-and-not" "bit-clear" "bit-flip" "bit-not" "bit-or"
+ "associative?" "atom" "bases" "bean" "bigdec" "bigint" "biginteger"
+ "bit-and" "bit-and-not" "bit-clear" "bit-flip" "bit-not" "bit-or"
"bit-set" "bit-shift-left" "bit-shift-right" "bit-test"
"bit-xor" "boolean" "boolean-array" "boolean?"
"booleans" "bound-fn*" "bound?" "bounded-count"