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
2D array literal indentation #26
Comments
I've been unable to reproduce this, both with and without the indent file installed. |
looks like it only happens inside a block:
With the cursor at the top, press |
Still not observing this behavior, will need to verify that I am getting the indent file to load. |
rcorre
added a commit
to rcorre/d.vim
that referenced
this issue
Jul 14, 2015
If the current line and the line above both begin with an array literal, align the current line with the above line. Resolves JesseKPhillips#26. Keeps multiline 2D array definitions aligned like so: auto a = [ [1, 2, 3], [1, 2, 3], [1, 2, 3], ]; Previously they were aligned like so: auto a = [ [1, 2, 3], [1, 2, 3], [1, 2, 3], ];
I can reproduce this bug, and suggested solution seems to resolve it. @rcorre mind creating a PR? |
rcorre
added a commit
to rcorre/d.vim
that referenced
this issue
Oct 11, 2015
If the current line and the line above both begin with an array literal, align the current line with the above line. Resolves JesseKPhillips#26. Keeps multiline 2D array definitions aligned like so: auto a = [ [1, 2, 3], [1, 2, 3], [1, 2, 3], ]; Previously they were aligned like so: auto a = [ [1, 2, 3], [1, 2, 3], [1, 2, 3], ];
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following declaration:
is indented like so (when using
==
):The text was updated successfully, but these errors were encountered: