diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-03-19 11:35:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-03-19 11:35:58 +0100 |
commit | ac7bd63844fdc6696a48b69d7a42e23e30245980 (patch) | |
tree | 00fa78b483597a152d53c2b10b90c0ea76761ab3 /runtime/syntax/groovy.vim | |
parent | b897871ce9a4a6bd033bfe127a83eb6348361739 (diff) | |
download | vim-git-ac7bd63844fdc6696a48b69d7a42e23e30245980.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/syntax/groovy.vim')
-rw-r--r-- | runtime/syntax/groovy.vim | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/syntax/groovy.vim b/runtime/syntax/groovy.vim index 5b256f398..745a0971e 100644 --- a/runtime/syntax/groovy.vim +++ b/runtime/syntax/groovy.vim @@ -2,9 +2,9 @@ " Language: Groovy " Original Author: Alessio Pace <billy.corgan@tiscali.it> " Maintainer: Tobias Rapp <yahuxo@gmx.de> -" Version: 0.1.11 +" Version: 0.1.12 " URL: http://www.vim.org/scripts/script.php?script_id=945 -" Last Change: 2012 Jan 08 +" Last Change: 2013 Mar 14 " THE ORIGINAL AUTHOR'S NOTES: " @@ -250,13 +250,17 @@ syn match groovyComment "/\*\*/" " Strings and constants syn match groovySpecialError contained "\\." syn match groovySpecialCharError contained "[^']" -syn match groovySpecialChar contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)" +syn match groovySpecialChar contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\|\$\)" +syn match groovyRegexChar contained "\\." syn region groovyString start=+"+ end=+"+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr syn region groovyString start=+'+ end=+'+ end=+$+ contains=groovySpecialChar,groovySpecialError,@Spell syn region groovyString start=+"""+ end=+"""+ contains=groovySpecialChar,groovySpecialError,@Spell,groovyELExpr syn region groovyString start=+'''+ end=+'''+ contains=groovySpecialChar,groovySpecialError,@Spell +" regex string +syn region groovyString start='/[^/]' end='/' contains=groovySpecialChar,groovyRegexChar,groovyELExpr " syn region groovyELExpr start=+${+ end=+}+ keepend contained - syn match groovyELExpr /\${.\{-}}/ contained +syn match groovyELExpr /\${.\{-}}/ contained +syn match groovyELExpr /\$[a-zA-Z_][a-zA-Z0-9_.]*/ contained GroovyHiLink groovyELExpr Identifier " TODO: better matching. I am waiting to understand how it really works in groovy @@ -415,6 +419,7 @@ if version >= 508 || !exists("did_groovy_syn_inits") GroovyHiLink groovySpecialError Error GroovyHiLink groovySpecialCharError Error GroovyHiLink groovyString String + GroovyHiLink groovyRegexChar String GroovyHiLink groovyCharacter Character GroovyHiLink groovySpecialChar SpecialChar GroovyHiLink groovyNumber Number |