Override groovy syntax file

This commit is contained in:
2016-09-11 13:12:14 +01:00
parent 4180ce4d69
commit c7eea18cf4
2 changed files with 72 additions and 11 deletions

View File

@@ -1,11 +0,0 @@
" 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