Skip to content

Commit 358972c

Browse files
BrunoBonaccikommen
authored andcommitted
Handle properly def* symbols, containing special chars
1 parent c1442b2 commit 358972c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clojure-mode-font-lock-test.el

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ POS."
193193
(should (eq (clojure-test-face-at 2 5) 'font-lock-keyword-face))
194194
(should (eq (clojure-test-face-at 7 9) 'font-lock-function-name-face))))
195195

196+
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars1 ()
197+
:tags '(fontification syntax-table)
198+
(clojure-test-with-temp-buffer "(defn* foo [x] x)"
199+
(should (eq (clojure-test-face-at 2 6) 'font-lock-keyword-face))
200+
(should (eq (clojure-test-face-at 8 10) 'font-lock-function-name-face))))
201+
202+
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars2 ()
203+
:tags '(fontification syntax-table)
204+
(clojure-test-with-temp-buffer "(defsomething! foo [x] x)"
205+
(should (eq (clojure-test-face-at 2 14) 'font-lock-keyword-face))
206+
(should (eq (clojure-test-face-at 16 18) 'font-lock-function-name-face))))
207+
196208
(ert-deftest clojure-mode-syntax-table/lambda-params ()
197209
:tags '(fontification syntax-table)
198210
(clojure-test-with-temp-buffer "#(+ % %2 %3)"

0 commit comments

Comments
 (0)