aboutsummaryrefslogtreecommitdiffstats
path: root/queries/clojure
diff options
context:
space:
mode:
authorOliver Marshall <olivershawmarshall@gmail.com>2021-06-05 01:36:55 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-07-19 16:24:01 +0000
commit4390cbffd586fee90811a1214823922b9fd963c9 (patch)
tree1ce391cbcba35897588571fccc5bc369fb849f98 /queries/clojure
parentFirst pass at def-likes (diff)
downloadnvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar.gz
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar.bz2
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar.lz
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar.xz
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.tar.zst
nvim-treesitter-4390cbffd586fee90811a1214823922b9fd963c9.zip
Add some comments & TODOs
Diffstat (limited to 'queries/clojure')
-rw-r--r--queries/clojure/highlights.scm18
1 files changed, 10 insertions, 8 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm
index 7bf22b342..3aeaec2cf 100644
--- a/queries/clojure/highlights.scm
+++ b/queries/clojure/highlights.scm
@@ -47,8 +47,6 @@
(meta_lit
marker: "^" @punctuation.special)
-;; TODO: Highlight code in comments?
-
;; parameter-related
((sym_lit) @parameter
(#match? @parameter "^[&]"))
@@ -57,6 +55,7 @@
(#match? @variable.builtin "^[%]"))
;; TODO: General symbol highlighting
+;; use @variable?
;((sym_lit) @symbol
; (#eq? @symbol @variable))
@@ -90,7 +89,7 @@
(sym_lit) @parameter)?)
-;; def-like things
+;; namespaces
;; TODO
;(list_lit
; .
@@ -99,6 +98,8 @@
; .
; (sym_lit) @function)
+;; TODO: symbols with `.`, mark them as namespaces?
+
;; operators
((sym_lit) @operator
(#any-of? @operator
@@ -109,6 +110,12 @@
;; TODO
;; Do this by having a big scope with all symbols in it and
;; use `#not-eq? @myvar @parameter`
+;; NOTE: That's a big hack
+
+;; Ordinary calls
+;; TODO
+;; Do this by having a big scope with all symbols in it and
+;; use `#not-eq? @myvar @parameter`
;; Interop
(list_lit
@@ -252,8 +259,3 @@
"vector" "vector-of" "vector?" "volatile!" "volatile?"
"vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq"
"zero?" "zipmap"))
-
-
-;; other symbols with dots
-;((sym_lit) @variable
-; (#match? @variable "\\."))