From 8dc1b1abb243d252618ee7d9272968eabecd6889 Mon Sep 17 00:00:00 2001 From: Marconi Rivello Date: Mon, 22 Mar 2021 16:40:59 -0300 Subject: [PATCH] Test for some character literals Like brackets, curly brackets, parens and comma. The previous tests only checked them in total isolation. When inside a vector or before white space, it didn't work. --- test/clojure-mode-font-lock-test.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/clojure-mode-font-lock-test.el b/test/clojure-mode-font-lock-test.el index c6261227..e41fd8f9 100644 --- a/test/clojure-mode-font-lock-test.el +++ b/test/clojure-mode-font-lock-test.el @@ -942,6 +942,17 @@ DESCRIPTION is the description of the spec." ("\\ク" (1 2 clojure-character-face))) + (when-fontifying-it "should handle characters not by themselves" + ("[\\,,]" + (1 1 nil) + (2 3 clojure-character-face) + (4 5 nil)) + + ("[\\[]" + (1 1 nil) + (2 3 clojure-character-face) + (4 4 nil))) + (when-fontifying-it "should handle referred vars" ("foo/var" (1 3 font-lock-type-face))