Skip to content

Commit b26d632

Browse files
committed
Expect ns regexp to be at the start of a line
Otherwise, having some code like (defmacro with-ns [ns & body] `(let [old-ns# (ns-name *ns*)] (in-ns ~ns) ~@Body (finally (in-ns old-ns#)))) would trip clojure-mode into thinking there are two namespaces there, even though there are none.
1 parent 6af711b commit b26d632

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clojure-mode.el

-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,6 @@ nil."
12161216

12171217
(defconst clojure-namespace-name-regex
12181218
(rx line-start
1219-
(zero-or-more whitespace)
12201219
"("
12211220
(zero-or-one (group (regexp "clojure.core/")))
12221221
(zero-or-one (submatch "in-"))

0 commit comments

Comments
 (0)