File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1103,7 +1103,7 @@ Useful if a file has been renamed."
11031103Returns a list pair, e.g. (\" defn\" \" abc\" ) or (\" deftest\" \" some-test\" )."
11041104 (let ((re (concat " (\\ (?:\\ (?:\\ sw\\ |\\ s_\\ )+/\\ )?"
11051105 ; ; Declaration
1106- " \\ (def\\ sw *\\ )\\ >"
1106+ " \\ (def\\ (?: \\ sw \\ | \\ s_ \\ ) *\\ )\\ >"
11071107 ; ; Any whitespace
11081108 " [ \r\n\t ]*"
11091109 ; ; Possibly type or metadata
Original file line number Diff line number Diff line change @@ -214,6 +214,12 @@ POS."
214214 (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword-face ))
215215 (should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
216216
217+ (ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars3 ()
218+ :tags '(fontification syntax-table)
219+ (clojure-test-with-temp-buffer " (def-something foo [x] x)"
220+ (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword-face ))
221+ (should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
222+
217223(ert-deftest clojure-mode-syntax-table/lambda-params ()
218224 :tags '(fontification syntax-table)
219225 (clojure-test-with-temp-buffer " #(+ % %2 %3)"
You can’t perform that action at this time.
0 commit comments