Friday, March 1, 2013

groovy syntax patch

250a251,253
> syn region groovyString start='"""' end='"""' fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
> syn region groovyString start="'''" end="'''" fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
>
252c255,257
< syn match groovyELExpr /\${.\{-}}/ contained
---
> syn match groovyELExpr /\${.\{-}}/ contained
> syn match groovyELExpr /\$[a-zA-Z][a-zA-Z.]*/ contained
>
The following patch will enable correct highlighting of triple quote, triple double-quote and "x is $x"


The author of the patch lists an email address that is unresponsive, and since nobody else can upload a patch, now what? There may be other improvements, but these are pretty glaring.


NOTE: very long lines below, which may get screwed up if the site wraps them. I also will attempt to upload a file with the patch.


# diff groovy.vim.orig groovy.vim
250a251,253
> syn region groovyString start='"""' end='"""' fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
> syn region groovyString start="'''" end="'''" fold contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr
>
252c255,257
< syn match groovyELExpr /\${.\{-}}/ contained
---
> syn match groovyELExpr /\${.\{-}}/ contained
> syn match groovyELExpr /\$[a-zA-Z][a-zA-Z.]*/ contained
>


N.B. I added the above as a note to the groovy syntax page:
http://vim.wikia.com/wiki/Script:945


You may want to remove it if you apply the patch.

It is quite frustrating to figure out where to submit this patch, so I hope this works.

Thanks,
-= miles =-

--
--
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/groups/opt_out.

No comments: