Monday, May 11, 2015

Re: indentation failure on java for loop

On Friday, May 8, 2015 at 12:29:07 AM UTC-7, h_east wrote:
> Hi Sean,
>
> 2015/5/8(Fri) 14:43:47 UTC+9 Sean Wolfe:
> > I'm getting indentation problems in Java and Scala where a closing brace after an else clause doesn't indent backwards. Example is below.
> >
> > You can see the final closing brace has not been unindented properly. This continues even if I do =G to indent to the end of the file. If I fix it manually and do =G again, it repeats the problem.
> >
> > Anybody ever seen something like this?
> >
> > ---------
> > for (Ship ship : GameInstance.getInstance().frigates) {
> > if (ship.alive) {
> > ship.draw(gameBatch)
> > } else {
> > GameInstance.getInstance().frigates.removeValue(ship, true)
> > }
> > }
>
> I can not reproduce it. (Vim 7.4.728 on Ubuntu 12.04)
>
> What version of Vim that you are using?
> Please tell me the following results.
>
> :set ft? indentexpr? cino?
>
> --
> Best regards,
> Hirohito Higashi (a.k.a. h_east)

I've got vim 7.3 on macosx 10.9 .

filetype=scala
indentexpr=GetScalaIndent()
cinoptions=

Thanks! I'm going to keep poking around and keep you posted !

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment