diff options
| author | Oliver Marshall <olivershawmarshall@gmail.com> | 2021-06-06 13:18:03 +0100 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-19 16:24:01 +0000 |
| commit | 54e4a59fa7a21df21d7784803ab050585c018908 (patch) | |
| tree | c35092d4b0e1e36b99efb5cf4002bb75318b76d4 /queries/clojure | |
| parent | Simplify (diff) | |
| download | nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar.gz nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar.bz2 nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar.lz nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar.xz nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.tar.zst nvim-treesitter-54e4a59fa7a21df21d7784803ab050585c018908.zip | |
Move meta punctuation
Diffstat (limited to 'queries/clojure')
| -rw-r--r-- | queries/clojure/highlights.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm index 1e537b8b5..8869e700b 100644 --- a/queries/clojure/highlights.scm +++ b/queries/clojure/highlights.scm @@ -12,7 +12,7 @@ ["'" "`"] @string.escape -["~" "~@" "#" "^"] @punctuation.special +["~" "~@" "#"] @punctuation.special ["{" "}" "[" "]" "(" ")"] @punctuation.bracket @@ -236,3 +236,10 @@ "vector" "vector-of" "vector?" "volatile!" "volatile?" "vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq" "zero?" "zipmap")) + +; Meta punctuation +;; NOTE: When the above `Function definitions` query captures the +;; the @function it also captures the child meta_lit +;; We capture the meta_lit symbol (^) after so that the later +;; highlighting overrides the former +"^" @punctuation.special |
