File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1109,7 +1109,7 @@ Useful if a file has been renamed."
1109
1109
Returns a list pair, e.g. (\" defn\" \" abc\" ) or (\" deftest\" \" some-test\" )."
1110
1110
(let ((re (concat " (\\ (?:\\ (?:\\ sw\\ |\\ s_\\ )+/\\ )?"
1111
1111
; ; Declaration
1112
- " \\ (def\\ sw *\\ )\\ >"
1112
+ " \\ (def\\ (?: \\ sw \\ | \\ s_ \\ ) *\\ )\\ >"
1113
1113
; ; Any whitespace
1114
1114
" [ \r\n\t ]*"
1115
1115
; ; Possibly type or metadata
Original file line number Diff line number Diff line change @@ -226,6 +226,12 @@ POS."
226
226
(should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword-face ))
227
227
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
228
228
229
+ (ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars3 ()
230
+ :tags '(fontification syntax-table)
231
+ (clojure-test-with-temp-buffer " (def-something foo [x] x)"
232
+ (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword-face ))
233
+ (should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
234
+
229
235
(ert-deftest clojure-mode-syntax-table/lambda-params ()
230
236
:tags '(fontification syntax-table)
231
237
(clojure-test-with-temp-buffer " #(+ % %2 %3)"
You can’t perform that action at this time.
0 commit comments