aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Marshall <olivershawmarshall@gmail.com>2021-06-13 23:20:29 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-07-19 16:24:01 +0000
commit39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670 (patch)
tree4acfed4672b338eb62059d5e9d605bc4706e50ab
parentRemove constant highlighting (diff)
downloadnvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar.gz
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar.bz2
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar.lz
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar.xz
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.tar.zst
nvim-treesitter-39d0b9b61bcf8acdbf5159d2375e3d7a2ef97670.zip
Improve highlights for types
-rw-r--r--queries/clojure/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm
index c3e59496e..16824a717 100644
--- a/queries/clojure/highlights.scm
+++ b/queries/clojure/highlights.scm
@@ -73,9 +73,11 @@
; Types
;; TODO: improve?
-;; - symbols with `.` but not `/`?
((sym_lit) @type
(#match? @type "^[A-Z][^/]*$"))
+;; Symbols with `.` but not `/`
+((sym_lit) @type
+ (#match? @type "^[^/]+[.][^/]*$"))
; Interop
((sym_lit) @method