Vim Tips Wiki
No edit summary
(Comment here, not email.)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{ScriptComments|groovy: syntax file for the groovy programming language}}
[[File:Placeholder|video|right|300px]] [[File:Placeholder|right|300px]]
 
==patch for groovy syntax==
 
This doesn't look the way it should, but the WIKI formatting is not cooperating. Sorry!
 
   
 
==Patch for groovy syntax==
 
The following patch will enable correct highlighting of triple quote, triple double-quote and "x is $x".
   
  +
<pre>
The following patch will enable correct highlighting of \'\'\', """ and "x is $x"
 
 
 
<code>
 
<nowiki>
 
 
# diff groovy.vim.orig groovy.vim
 
# diff groovy.vim.orig groovy.vim
 
250a251,253
 
250a251,253
Line 20: Line 16:
 
> syn match groovyELExpr /\$[a-zA-Z][a-zA-Z.]*/ contained
 
> syn match groovyELExpr /\$[a-zA-Z][a-zA-Z.]*/ contained
 
>
 
>
  +
</pre>
</nowiki></code>
 
  +
  +
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. [[User:JohnBeckett|JohnBeckett]] ([[User talk:JohnBeckett|talk]]) 06:59, March 2, 2013 (UTC)
  +
  +
==Comments==
  +
  +
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

Latest revision as of 08:07, 8 July 2014

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 syntax[]

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)

Comments[]

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