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

Issues with inline comments #1

Open
claudiuapetrei opened this issue Dec 12, 2018 · 1 comment
Open

Issues with inline comments #1

claudiuapetrei opened this issue Dec 12, 2018 · 1 comment

Comments

@claudiuapetrei
Copy link

claudiuapetrei commented Dec 12, 2018

Ex:

;; before
(foo bar
     baz             ;; <-- 2nd line is "first-arg aligned"
  qux)

;; after
(foo bar
  baz             ;; <-- 2nd line is "first-arg aligned"  qux)

;; expected
(foo bar
  baz             ;; <-- 2nd line is "first-arg aligned"  
  qux)
@kkinnear
Copy link
Owner

Yes, I forgot to tie off the normal zprint comment handling, and it interacts badly with the code I added to try out this formatting approach.

At first look, this seems like a reasonable workaround. Use this options map:

./zprintm-std-0.1.1 '{:comment {:inline? false :wrap? false}}' <infile.clj >outfile.clj

If you don't want to put this on the command line, you could put it in your ~/.zprintrc. All of the normal zprint config is run with this zprint-std thing.

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

2 participants