Skip to content

Commit 1cea7ef

Browse files
Bozhidar Batsovkommen
authored andcommitted
Fix font-locking of namespaced constructor calls
1 parent 7d27faa commit 1cea7ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clojure-mode-test.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ 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/constructor ()
90+
:tags '(fontification syntax-table)
91+
(should (eq (clojure-test-face-at 2 11 "(SomeClass.)") 'font-lock-type-face))
92+
(clojure-test-with-temp-buffer "(ns/SomeClass.)"
93+
(should (eq (clojure-test-face-at 2 3) 'font-lock-type-face))
94+
(should (eq (clojure-test-face-at 5 14) 'font-lock-type-face))))
95+
8996
(ert-deftest clojure-mode-syntax-table/namespaced-symbol ()
9097
:tags '(fontification syntax-table)
9198
(clojure-test-with-temp-buffer "clo.core/something"

0 commit comments

Comments
 (0)