File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1338,8 +1338,8 @@ nil."
1338
1338
(let ((beg (match-beginning 2 )))
1339
1339
(when beg
1340
1340
(if regex
1341
- (and (char-before beg) (char-equal ?# (char-before beg)) (1- beg))
1342
- (when (not (char-equal ?# (char-before beg)))
1341
+ (and (char-before beg) (eq ?# (char-before beg)) (1- beg))
1342
+ (when (not (eq ?# (char-before beg)))
1343
1343
beg))))))))
1344
1344
1345
1345
(defun clojure-char-at-point ()
Original file line number Diff line number Diff line change @@ -113,6 +113,14 @@ POS."
113
113
(should (equal (clojure-test-face-at 3 10 " ;`#' s/trim`" ) '(font-lock-constant-face font-lock-comment-face )))
114
114
(should (equal (clojure-test-face-at 11 11 " ;`#' s/trim`" ) font-lock-comment-face )))
115
115
116
+ (ert-deftest clojure-mode-syntax-table/stuff-in-backticks ()
117
+ :tags '(fontification syntax-table)
118
+ (should (equal (clojure-test-face-at 1 2 " \" a\\ bc\\ n\" " ) font-lock-string-face ))
119
+ (should (equal (clojure-test-face-at 3 4 " \" a\\ bc\\ n\" " ) '(bold font-lock-string-face )))
120
+ (should (equal (clojure-test-face-at 5 5 " \" a\\ bc\\ n\" " ) font-lock-string-face ))
121
+ (should (equal (clojure-test-face-at 6 7 " \" a\\ bc\\ n\" " ) '(bold font-lock-string-face )))
122
+ (should (equal (clojure-test-face-at 4 5 " #\" a\\ bc\\ n\" " ) '(bold font-lock-string-face ))))
123
+
116
124
(ert-deftest clojure-mode-syntax-table/fontify-namespaced-keyword ()
117
125
:tags '(fontification syntax-table)
118
126
(should (equal (clojure-test-face-at 9 11 " (:alias/def x 10)" ) '(clojure-keyword-face)))
You can’t perform that action at this time.
0 commit comments