-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Indenter and formatter not in agreement about some forms #2032
Comments
Maybe a unit test that checks that the indenter and the formatter does the same thing is called for here. |
I'll try to identify the config for both indenter and formatter, probably the sorting fix from the |
Hi @PEZ! I can't reproduce it this way and With a form like (cursor at |): (and x |y) Pressing (and x
|y) I then press (and x
|y) And then (and x
|y) I guess it happens because |
Ah, you are right, my repro is bad. So the error I see, happens in my work project, where we have {:indents {#"\S+" [[:inner 0]]
,,,}
:test-form
(and a b)} It used to make both the indenter and the formatter indent like: (and x
y) But since recently it makes the indenter format it as if the regex catch-all wasn't there. Your find with backspace is interesting. I tried it with v2.0.322 and it was the same there. Please file as a separate issue. |
@PEZ and this one also 🙏 |
With a form like (cursor at
|
):(and x |y)
Pressing enter gives
(and x |y)
Which I think is expected (can't recall right now). However, if I then press tab, I get:
(and x |y)
So it seems like the indenter and the formatter read the config differently.
Possibly related:
Originally posted by @PEZ in #1957 (comment)
The text was updated successfully, but these errors were encountered: