Skip to content

Commit 039ba8e

Browse files
Bozhidar Batsovkommen
authored andcommitted
Fix a ns font-locking bug
Everything appearing after the word ns was treated as namespace (.e.g. [ns name]). Now we check if ns is preceded by a (.
1 parent b0919a7 commit 039ba8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clojure-mode-test.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ POS."
217217
(ert-deftest clojure-mode-syntax-table/ns-macro ()
218218
:tags '(fontification syntax-table)
219219
(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)))
220+
(should (eq (clojure-test-face-at 5 13 "(ns name.name)") 'font-lock-type-face))
221+
(should (eq (clojure-test-face-at 1 10 "[ns name]") nil)))
221222

222223
(provide 'clojure-mode-test)
223224

0 commit comments

Comments
 (0)