Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Correctly indent splicing reader conditionals #14

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

Merged
axvr merged 1 commit into clojure-vim:master from mrichards42:reader-conditional-splice
Mar 4, 2021

Conversation

Copy link
Contributor

@mrichards42 mrichards42 commented Mar 4, 2021

Adjusts is_reader_conditional_special_case to also match splices, i.e. #?@. The test case is taken from https://clojure.org/guides/reader_conditionals

Without this, splicing conditionals are indented as functions, e.g.

 #?@(:clj [5 6 7 8]
 :cljs [1 2 3 4])))

@axvr axvr merged commit 9e6878e into clojure-vim:master Mar 4, 2021
Copy link
Member

axvr commented Mar 4, 2021

Thanks! Tested and merged.

mrichards42 reacted with hooray emoji

@mrichards42 mrichards42 deleted the reader-conditional-splice branch March 4, 2021 19:02
@axvr axvr added the indentation Affects indentation label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
indentation Affects indentation
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /