-
Notifications
You must be signed in to change notification settings - Fork 293
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
Incorrect indentation for block params with parenthesis #344
Comments
I can't seem to reproduce the issue on the current master branch. Could you check if you've got the latest version from github? If you do, it might be something setting-related, or related to the Vim version. Could you post the output from |
I am also seeing this issue, on OS X 10.12.6 using both vim and neovim:
I just ran a |
@klieth Could you also post your .vimrc? The particular settings you have might give me a clue. |
@AndrewRadev I'm using a mostly vanilla install of maximum-awesome: https://github.com/square/maximum-awesome/blob/master/vimrc and https://github.com/square/maximum-awesome/blob/master/vimrc.local The only addition I've made is to add |
Hmm, well, I tried installing this distribution. It was harder than it should be, since the authors seem to be building it exclusively for MacOS (relying on the presence of Could you double-check that |
FWIW, I just came here to report this same issue: [].each do |(a, b)|
it "x" do
puts
end
end
My HEAD is 1e4c6fd. |
Can't reproduce either. This is definitely a bug I've encountered in the past, so I'm inclined to think this is a case of the stock files included with Vim loading rather than the latest. |
Hrmm 😕 Here's my Likewise:
( |
I concede your install looks correct. |
Thanks for confirming; from that, I dug in in hopes of finding some sort of cross-plugin interaction. ... but I didn't find one. I think (based on vim -N -i NONE -u NONE --noplugin \
--cmd 'let &runtimepath="~/.vim/bundle/vim-ruby,$VIMRUNTIME"' \
--cmd 'filetype indent on' --cmd 'syntax on' \
-c 'setf ruby' -c 'normal =G' - <<EOF
[].each do |(a, b)|
it "x" do
puts
end
end
EOF But that still leaves me looking at: [].each do |(a, b)|
it "x" do
puts
end
end (to be extra sure I also killed I also tried pointing at a fresh clone (now at 6959e10), just to eliminate any weirdness in my existing checkout; no luck there either. |
instead of
inner block
end
keyword is on same line as the first block end.The text was updated successfully, but these errors were encountered: