Commit 0a92a82
committed
Fix imenu with Clojure code in string or comment
Ignore error that's thrown from `down-list` when called
with point inside a string or comment.
E.g. with code like:
```
(defn foo []
(let [a "
(defn b [_]
(bar {:bla \"bla\"}))"]))
```
`clojure-match-next-def` calls `down-list` with point inside
the string and `down-list` will throw an user-error with
"This command doesn't work in strings or comments".1 parent 414157c commit 0a92a82
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
| 780 | + | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
| |||
0 commit comments