-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Indenting not working correctly in vectors starting with fn-like symbols #1622
Labels
Comments
Oh, wow, this is weird: (let [context|]) enter (let [context
|]) But: (let [contexs|]) enter (let [contexs
|]) |
So, I think I know what is going on now. If we test that theory with some more default indentations: ;; `[[:inner 0]]`
[fn|]
;; `[[:block 0]]`
[do|]
;; `[[:block 1]]`
[let|] enter in all the forms ;; `[[:inner 0]]`
[fn
|]
;; `[[:block 0]]`
[do
|]
;; `[[:block 1]]`
[let
|] So, the bug then is that our indenter doesn't check for the type of list it indents. Amazing. |
PEZ
changed the title
Indenting not working correctly in this situation
Indenting not working correctly in vectors
Mar 27, 2022
14 tasks
PEZ
added a commit
that referenced
this issue
Mar 29, 2022
PEZ
changed the title
Indenting not working correctly in vectors
Indenting not working correctly in vectors starting with fn-like symbols
Mar 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I have the below code and press enter with my cursor where noted with
|
in the first example, it then ends up where noted in the second.Starting:
When I press enter:
What I expect after pressing enter:
The text was updated successfully, but these errors were encountered: