From 99185fcf7dd31c6fb112e6ebd075ead9c07f8ff9 Mon Sep 17 00:00:00 2001 From: Oliver Marshall Date: Sat, 5 Jun 2021 01:36:55 +0100 Subject: Add some comments & TODOs --- queries/clojure/highlights.scm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'queries/clojure') 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,12 +98,20 @@ ; . ; (sym_lit) @function) +;; TODO: symbols with `.`, mark them as namespaces? + ;; operators ((sym_lit) @operator (#any-of? @operator "*" "*'" "+" "+'" "-" "-'" "/" "<" "<=" ">" ">=" "=" "==" "not" "not=")) +;; Ordinary calls +;; 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 @@ -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 "\\.")) -- cgit v1.2.3-70-g09d2