Loading ...
Sorry, an error occurred while loading the content.

Re: groovy syntax patch

Expand Messages
  • Miles Zarathustra
    Hi Tobias, I made some improvements to the groovy syntax highlighting, but the original author lists an email addr that no longer works. Bram Moolenaar
    Message 1 of 5 , Mar 2, 2013
    • 0 Attachment
      Hi Tobias,

      I made some improvements to the groovy syntax highlighting, but the original author lists an email addr that no longer works.

      Bram Moolenaar suggested sending you a context diff, so here it is. 
      This enables """ and ''', and also "x is $x"

      Thanks,
        -= miles =-


      $ diff -c /usr/share/vim/vim73/syntax/groovy.vim.orig /usr/share/vim/vim73/syntax/groovy.vim
      *** /usr/share/vim/vim73/syntax/groovy.vim.orig Fri Mar  1 15:23:43 2013
      --- /usr/share/vim/vim73/syntax/groovy.vim      Fri Mar  1 15:53:53 2013
      ***************
      *** 248,255 ****
        syn match   groovySpecialChar      contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
        syn region  groovyString          start=+"+ end=+"+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
        syn region  groovyString          start=+'+ end=+'+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
        " syn region groovyELExpr start=+${+ end=+}+ keepend contained
      !  syn match groovyELExpr /\${.\{-}}/ contained
        GroovyHiLink groovyELExpr Identifier

        " TODO: better matching. I am waiting to understand how it really works in groovy
      --- 248,260 ----
        syn match   groovySpecialChar      contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
        syn region  groovyString          start=+"+ end=+"+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
        syn region  groovyString          start=+'+ end=+'+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
      + syn region  groovyString          start='"""' end='"""' fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
      + syn region  groovyString          start="'''" end="'''" fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
      +
        " syn region groovyELExpr start=+${+ end=+}+ keepend contained
      ! syn match groovyELExpr /\${.\{-}}/ contained
      ! syn match groovyELExpr /\$[a-zA-Z][a-zA-Z.]*/ contained
      !
        GroovyHiLink groovyELExpr Identifier

        " TODO: better matching. I am waiting to understand how it really works in groovy




      On Sat, Mar 2, 2013 at 1:51 PM, Bram Moolenaar <Bram@...> wrote:

      Miles Zarathustra wrote:

      > Thanks for getting back.
      >
      > Vim is awesome, by the way.  I use it all the time.
      >
      > If you give me Tobias Rapp's email, I would be glad to forward it.  I can
      > turn on -c  (but I'm not connected to that network right now)

      It's in the syntax file header:
              " Maintainer:   Tobias Rapp <yahuxo@...>
      If that doesn't work I have another one.

      --
      When a fly lands on the ceiling, does it do a half roll or
      a half loop?

       /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
      ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\  an exciting new programming language -- http://www.Zimbu.org        ///
       \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

      --
      --
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
       
       
    Your message has been successfully submitted and would be delivered to recipients shortly.