Skip to content

Commit

Permalink
Test for some character literals
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rvlo committed Mar 22, 2021
1 parent a14671e commit 8dc1b1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/clojure-mode-font-lock-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8dc1b1a

Please sign in to comment.