Mercurial > ec-dotfiles
view vendor/vim-syntax/blade.vim @ 580:5a0f3d427979
Change touch function to noop when uninstalling
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 11 Oct 2015 04:11:49 +0900 |
parents | a056f6920d8e |
children | 7fbadf8bd22e |
line wrap: on
line source
" Language: Blade " Maintainer: Jason Walton <jwalton512@gmail.com> " URL: https://github.com/xsbeats/vim-blade " License: DBAD " Check if our syntax is already loaded if exists('b:current_syntax') && b:current_syntax == 'blade' finish endif " Include PHP runtime! syntax/php.vim silent! unlet b:current_syntax " Echos syn region bladeUnescapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{!!/ end=/!!}\s*/ contains=@phpClTop containedin=ALLBUT,bladeComment syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{\@!/ end=/}}\s*/ contains=@phpClTop containedin=ALLBUT,bladeComment syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{{\@!/ end=/}}}/ contains=@phpClTop containedin=ALLBUT,bladeComment " Structures syn match bladeStructure /\s*@\(else\|empty\|endfor\|endforeach\|endforelse\|endif\|endpush\|endsection\|endunless\|endwhile\|overwrite\|show\|stop\)\>/ syn match bladeStructure /\s*@\(append\|choice\|each\|elseif\|extends\|for\|foreach\|forelse\|if\|include\|lang\|push\|section\|stack\|unless\|while\|yield\|\)\>\s*/ nextgroup=bladeParens syn region bladeParens matchgroup=bladeParen start=/(/ end=/)/ contained contains=@bladeAll,@phpClTop " Comments syn region bladeComments start=/\s*{{--/ end=/--}}/ contains=bladeComment keepend syn match bladeComment /.*/ contained containedin=bladeComments " Clusters syn cluster bladeAll contains=bladeStructure,bladeParens " Highlighting hi def link bladeComment Comment hi def link bladeEchoDelim Delimiter hi def link bladeParen Delimiter hi def link bladeStructure Keyword if !exists('b:current_syntax') let b:current_syntax = 'blade' endif