Skip to content

Commit 8dc1b1a

Browse files
committed
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.
1 parent a14671e commit 8dc1b1a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/clojure-mode-font-lock-test.el

+11
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,17 @@ DESCRIPTION is the description of the spec."
942942
("\\"
943943
(1 2 clojure-character-face)))
944944

945+
(when-fontifying-it "should handle characters not by themselves"
946+
("[\\,,]"
947+
(1 1 nil)
948+
(2 3 clojure-character-face)
949+
(4 5 nil))
950+
951+
("[\\[]"
952+
(1 1 nil)
953+
(2 3 clojure-character-face)
954+
(4 4 nil)))
955+
945956
(when-fontifying-it "should handle referred vars"
946957
("foo/var"
947958
(1 3 font-lock-type-face))

0 commit comments

Comments
 (0)