Skip to content

Commit b0919a7

Browse files
Bozhidar Batsovkommen
authored andcommitted
Fix font-locking of single-segment names in ns macro
1 parent 2ae9514 commit b0919a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clojure-mode-test.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ POS."
214214
(should (eq (clojure-test-face-at 1 10 "*some-var*") 'font-lock-variable-name-face))
215215
(should (eq (clojure-test-face-at 2 11 "@*some-var*") 'font-lock-variable-name-face)))
216216

217+
(ert-deftest clojure-mode-syntax-table/ns-macro ()
218+
:tags '(fontification syntax-table)
219+
(should (eq (clojure-test-face-at 5 8 "(ns name)") 'font-lock-type-face))
220+
(should (eq (clojure-test-face-at 5 13 "(ns name.name)") 'font-lock-type-face)))
221+
217222
(provide 'clojure-mode-test)
218223

219224
;; Local Variables:

0 commit comments

Comments
 (0)