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 @@ -1103,7 +1103,7 @@ Useful if a file has been renamed."
1103
1103
Returns a list pair, e.g. (\" defn\" \" abc\" ) or (\" deftest\" \" some-test\" )."
1104
1104
(let ((re (concat " (\\ (?:\\ (?:\\ sw\\ |\\ s_\\ )+/\\ )?"
1105
1105
; ; Declaration
1106
- " \\ (def\\ sw *\\ )\\ >"
1106
+ " \\ (def\\ (?: \\ sw \\ | \\ s_ \\ ) *\\ )\\ >"
1107
1107
; ; Any whitespace
1108
1108
" [ \r\n\t ]*"
1109
1109
; ; Possibly type or metadata
Original file line number Diff line number Diff line change @@ -214,6 +214,12 @@ POS."
214
214
(should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword-face ))
215
215
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
216
216
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
+
217
223
(ert-deftest clojure-mode-syntax-table/lambda-params ()
218
224
:tags '(fontification syntax-table)
219
225
(clojure-test-with-temp-buffer " #(+ % %2 %3)"
You can’t perform that action at this time.
0 commit comments