Skip to content

Commit e502dc4

Browse files
Bozhidar Batsovkommen
authored andcommitted
Simplify font-locking of types used as type hints
1 parent c137364 commit e502dc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clojure-mode-test.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ POS."
8686
:tags '(fontification syntax-table)
8787
(should (eq (clojure-test-face-at 1 9 "SomeClass") 'font-lock-type-face)))
8888

89+
(ert-deftest clojure-mode-syntax-table/type-hint ()
90+
:tags '(fontification syntax-table)
91+
(clojure-test-with-temp-buffer "#^SomeClass"
92+
(should (eq (clojure-test-face-at 3 11) 'font-lock-type-face))
93+
(should (eq (clojure-test-face-at 1 2) nil))))
94+
8995
(ert-deftest clojure-mode-syntax-table/constructor ()
9096
:tags '(fontification syntax-table)
9197
(should (eq (clojure-test-face-at 2 11 "(SomeClass.)") 'font-lock-type-face))

0 commit comments

Comments
 (0)