Skip to content

Commit ee48d40

Browse files
rrudakovbbatsov
authored andcommitted
[#3791] Fix font lock error for clojure-ts-mode
1 parent 2c855f9 commit ee48d40

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535

3636
### Bugs fixed
3737

38-
- `cider-find-keyword` doesn't work with `clojure-ts-mode`.
38+
- [#3779](https://github.com/clojure-emacs/cider/pull/3779): `cider-find-keyword` doesn't work with `clojure-ts-mode`.
39+
- [#3791](https://github.com/clojure-emacs/cider/issues/3791): Missing font lock when `cider-font-lock-dynamically` is enabled
40+
for `clojure-ts-mode`.
3941

4042
## 1.17.1 (2025-02-25)
4143

cider-mode.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,12 @@ before point."
982982
(not (eq (char-after) ?\()))
983983
(condition-case nil
984984
(progn (backward-up-list) t)
985-
(scan-error nil))))
985+
(scan-error nil)
986+
;; In `clojure-ts-mode', when `backward-up-list' is used,
987+
;; `user-error' is signaled instead of `scan-error' because
988+
;; the operation is delegated to the `treesit-up-list'
989+
;; function.
990+
(user-error nil))))
986991
(setq beg (min beg (point)))
987992
;; If there are locals above the current sexp, reapply them to the
988993
;; current sexp.

0 commit comments

Comments
 (0)