Extend groovy syntax with Jenkins DSL tweeks
This commit is contained in:
parent
2c2ed3c099
commit
0bc30ad5c9
11
after/syntax/groovy.vim
Normal file
11
after/syntax/groovy.vim
Normal file
@ -0,0 +1,11 @@
|
||||
" File: groovy.vim
|
||||
" Author: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
|
||||
" Description: Extended groovy syntax for Jenkins DSL.
|
||||
|
||||
" Highlight shell('') and shell('''''') blocks with the sh filetype.
|
||||
syn include @groovyHighlightSh syntax/sh.vim
|
||||
syn region groovyHighlightSh matchgroup=groovyString start="shell(\zs'\(''\)\=" end="\(''\)\='\ze)" contains=@groovyHighlightSh
|
||||
|
||||
" Highlight batchFile('') and batchFile('''''') blocks with the batch filetype.
|
||||
syn include @groovyHighlightBatch syntax/batch.vim
|
||||
syn region groovyHighlightBatch matchgroup=groovyString start="batchFile(\zs'\(''\)\=" end="\(''\)\='\ze)" contains=@groovyHighlightBatch
|
Loading…
x
Reference in New Issue
Block a user