Skip to content

Commit 0e6816e

Browse files
rrudakovbbatsov
authored andcommitted
Add imenu support for deftest
1 parent eb9aab3 commit 0e6816e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [#38]: Add support for `in-ns` forms in `clojure-ts-find-ns`.
66
- [#46]: Fix missing `comment-add` variable in `clojure-ts-mode-variables` mentioned in [#26]
7+
- Add imenu support for `deftest` definitions.
78

89
## 0.2.2 (2024-02-16)
910

clojure-ts-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Can be called directly, but intended for use as `treesit-defun-name-function'."
578578
(treesit-node-text name)))))))
579579

580580
(defvar clojure-ts--function-type-regexp
581-
(rx string-start (or (seq "defn" (opt "-")) "defmethod") string-end)
581+
(rx string-start (or (seq "defn" (opt "-")) "defmethod" "deftest") string-end)
582582
"Regular expression for matching definition nodes that resemble functions.")
583583

584584
(defun clojure-ts--function-node-p (node)

0 commit comments

Comments
 (0)