diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
commit | f95026252c5a31242903a98c741887696dfbb11f (patch) | |
tree | cd697cdc96c20a44f03ff3aacc67f78fdcc6ece5 /syntax/embeddedpuppet.vim | |
parent | 4f3df59be709bf0d5c5c67dc804fde49abdc2700 (diff) | |
download | vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.tar.gz vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.zip |
Update everything, closes #435
Diffstat (limited to 'syntax/embeddedpuppet.vim')
-rw-r--r-- | syntax/embeddedpuppet.vim | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/syntax/embeddedpuppet.vim b/syntax/embeddedpuppet.vim new file mode 100644 index 00000000..71096274 --- /dev/null +++ b/syntax/embeddedpuppet.vim @@ -0,0 +1,33 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + +" Vim syntax plugin +" Language: embedded puppet +" Maintainer: Gabriel Filion <gabster@lelutin.ca> +" URL: https://github.com/rodjek/vim-puppet +" Last Change: 2019-09-01 + +" quit when a syntax file was already loaded {{{1 +if exists("b:current_syntax") + finish +endif + +runtime! syntax/sh.vim +unlet! b:current_syntax + +syn include @puppetTop syntax/puppet.vim + +syn cluster ePuppetRegions contains=ePuppetBlock,ePuppetExpression,ePuppetComment + +syn region ePuppetBlock matchgroup=ePuppetDelimiter start="<%%\@!-\=" end="[=-]\=%\@<!%>" contains=@puppetTop containedin=ALLBUT,@ePuppetRegions keepend +syn region ePuppetExpression matchgroup=ePuppetDelimiter start="<%=\{1,4}" end="[=-]\=%\@<!%>" contains=@puppetTop containedin=ALLBUT,@ePuppetRegions keepend +syn region ePuppetComment matchgroup=ePuppetDelimiter start="<%-\=#" end="[=-]\=%\@<!%>" contains=puppetTodo,@Spell containedin=ALLBUT,@ePuppetRegions keepend + +" Define the default highlighting. + +hi def link ePuppetDelimiter PreProc +hi def link ePuppetComment Comment + +let b:current_syntax = "embeddedpuppet" + + +endif |