Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clojure-backward-logical-sexp jumps over conditional #? sexps #443

Closed
vspinu opened this issue Aug 7, 2017 · 0 comments
Closed

clojure-backward-logical-sexp jumps over conditional #? sexps #443

vspinu opened this issue Aug 7, 2017 · 0 comments

Comments

@vspinu
Copy link
Contributor

vspinu commented Aug 7, 2017

Actual behavior

(def tt 1)

#?(:cljs
   (defn foo []))

#?(:cljs
   (defn bar []))

(defn bar [])
| ;; <- point here

M-x clojure-backward-logical-sexp will land just before first #?(:cljs. This breaks eval of defuns in cider.

The issue is with how clojure-backward-logical-sexp determines non-logical sexps. That simple regexp logic breaks there.

Malabarba added a commit that referenced this issue Aug 7, 2017
[Fix #443] Don't consider #? as starting non-logical sexp
slipset pushed a commit to slipset/clojure-mode that referenced this issue Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant