comparison runtime/syntax/groovy.vim @ 20552:74e3316c1d5a

Update runtime files Commit: https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 26 21:20:45 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 May 2020 21:30:04 +0200
parents 46763b01cd9a
children 5b37a0bf7e3a
comparison
equal deleted inserted replaced
20551:f1b23a9643fe 20552:74e3316c1d5a
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Groovy 2 " Language: Groovy
3 " Original Author: Alessio Pace <billy.corgan@tiscali.it> 3 " Original Author: Alessio Pace <billy.corgan AT tiscali.it>
4 " Maintainer: Tobias Rapp <yahuxo@gmx.de> 4 " Maintainer: Tobias Rapp <yahuxo+vim AT mailbox.org>
5 " Version: 0.1.16 5 " Version: 0.1.17
6 " URL: http://www.vim.org/scripts/script.php?script_id=945 6 " URL: http://www.vim.org/scripts/script.php?script_id=945
7 " Last Change: 2016 May 23 7 " Last Change: 2020 May 26
8 8
9 " THE ORIGINAL AUTHOR'S NOTES: 9 " THE ORIGINAL AUTHOR'S NOTES:
10 " 10 "
11 " This is my very first vim script, I hope to have 11 " This is my very first vim script, I hope to have
12 " done it the right way. 12 " done it the right way.
251 " by default 251 " by default
252 syn region groovyString start='/[^/*]' end='/' contains=groovySpecialChar,groovyRegexChar,groovyELExpr 252 syn region groovyString start='/[^/*]' end='/' contains=groovySpecialChar,groovyRegexChar,groovyELExpr
253 endif 253 endif
254 " syn region groovyELExpr start=+${+ end=+}+ keepend contained 254 " syn region groovyELExpr start=+${+ end=+}+ keepend contained
255 syn match groovyELExpr /\${.\{-}}/ contained 255 syn match groovyELExpr /\${.\{-}}/ contained
256 syn match groovyELExpr /\$[a-zA-Z_][a-zA-Z0-9_.]*/ contained 256 syn match groovyELExpr /\$[a-zA-Z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\uFFFE_][a-zA-Z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\uFFFE0-9_.]*/ contained
257 hi def link groovyELExpr Identifier 257 hi def link groovyELExpr Identifier
258 258
259 " TODO: better matching. I am waiting to understand how it really works in groovy 259 " TODO: better matching. I am waiting to understand how it really works in groovy
260 " syn region groovyClosureParamsBraces start=+|+ end=+|+ contains=groovyClosureParams 260 " syn region groovyClosureParamsBraces start=+|+ end=+|+ contains=groovyClosureParams
261 " syn match groovyClosureParams "[ a-zA-Z0-9_*]\+" contained 261 " syn match groovyClosureParams "[ a-zA-Z0-9_*]\+" contained