Hello,

I have a script that's written in the Groovy language, and the
indenting seems to be buggy.

The groovy.vim file that I'm using is 4 years old, and hasn't had any
updates to it since then.

Here's the problem:

I have:

#!/bin/env groovy
class Foo {
    def bar() {
          println "Hello"
          println "World"
    }
}

If I use gg=G, then I wind up with the second println being indented
differently than the first println, like this:

#!/bin/env groovy
class Foo {
    def bar() {
          println "Hello"
               println "World"
    }
}

Can anyone help me figure out what is causing this?  I'm willing to
learn a bit about syntax highlighting / indenting in Vim.  It appears
that the groovy.vim syntax file copies much of its functionality from
the java.vim and perl.vim syntax files, but I'm lost when it comes to
finding the reason for the odd indenting.

Thanks,
--Nate
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to