Wikia

Vim Tips Wiki

Script:945

Talk0
1,613pages on
this wiki

Use this page to discuss script 945 groovy: syntax file for the groovy programming language

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Patch for groovy syntaxEdit

The following patch will enable correct highlighting of triple quote, triple double-quote and "x is $x".

# 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
>

The author of the patch lists an email address that is unresponsive, and since nobody else can upload a patch, now what? --March 2, 2013

There is no good way to handle that. Sometimes another user makes a new script and in the description explains that it is a modified version of an earlier script. Or, just post updates here and hope that those interested will find this page. I saw the post at vim_use. You can't do any more. JohnBeckett (talk) 06:59, March 2, 2013 (UTC)

CommentsEdit

Has anyone else seen that a slash character inside a multi-line comment stops the comment highlighting? I'm using version 0.1.13 of the script from the Vim 7.4.052 installed in Ubuntu 14.04. --Neil Greenwood July 4, 2014

Around Wikia's network

Random Wiki