comparison vendor/vim-syntax/blade.vim @ 595:0e72765944d4

Update vendors
author nanaya <me@myconan.net>
date Wed, 22 Mar 2017 00:27:53 +0900
parents 7fbadf8bd22e
children b305f2ce5f88
comparison
equal deleted inserted replaced
594:2ac0fa5ba73c 595:0e72765944d4
18 18
19 syn case match 19 syn case match
20 syn clear htmlError 20 syn clear htmlError
21 21
22 if has('patch-7.4.1142') 22 if has('patch-7.4.1142')
23 syn iskeyword @,48-57,_,192-255,@-@ 23 syn iskeyword @,48-57,_,192-255,@-@,:
24 else 24 else
25 setlocal iskeyword+=@-@ 25 setlocal iskeyword+=@-@
26 endif 26 endif
27 27
28 syn region bladeEcho matchgroup=bladeDelimiter start="@\@<!{{" end="}}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend 28 syn region bladeEcho matchgroup=bladeDelimiter start="@\@<!{{" end="}}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend
29 syn region bladeEcho matchgroup=bladeDelimiter start="{!!" end="!!}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend 29 syn region bladeEcho matchgroup=bladeDelimiter start="{!!" end="!!}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend
30 syn region bladeComment matchgroup=bladeDelimiter start="{{--" end="--}}" contains=bladeTodo containedin=ALLBUT,@bladeExempt keepend 30 syn region bladeComment matchgroup=bladeDelimiter start="{{--" end="--}}" contains=bladeTodo containedin=ALLBUT,@bladeExempt keepend
31 31
32 syn keyword bladeKeyword @if @elseif @foreach @forelse @for @while @can @include @each @inject @extends @section @stack @push @unless @yield @parent @hasSection nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt 32 syn keyword bladeKeyword @if @elseif @foreach @forelse @for @while @can @cannot @elsecan @elsecannot @include
33 syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @empty @endforelse @endwhile @endcan @stop @append @endsection @endpush @show containedin=ALLBUT,@bladeExempt 33 \ @includeIf @each @inject @extends @section @stack @push @unless @yield @parent @hasSection @break @continue
34 \ @unset @lang @choice @component @slot @prepend
35 \ nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt
36
37 syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @empty @endforelse @endwhile @endcan
38 \ @endcannot @stop @append @endsection @endpush @show @overwrite @verbatim @endverbatim @endcomponent
39 \ @endslot @endprepend
40 \ containedin=ALLBUT,@bladeExempt
41
42 if exists('g:blade_custom_directives')
43 exe "syn keyword bladeKeyword @" . join(g:blade_custom_directives, ' @') . " nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt"
44 endif
45 if exists('g:blade_custom_directives_pairs')
46 exe "syn keyword bladeKeyword @" . join(keys(g:blade_custom_directives_pairs), ' @') . " nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt"
47 exe "syn keyword bladeKeyword @" . join(values(g:blade_custom_directives_pairs), ' @') . " containedin=ALLBUT,@bladeExempt"
48 endif
49
50 syn region bladePhpRegion matchgroup=bladeKeyword start="\<@php\>\s*(\@!" end="\<@endphp\>" contains=@bladePhp containedin=ALLBUT,@bladeExempt keepend
51 syn match bladeKeyword "@php\ze\s*(" nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt
34 52
35 syn region bladePhpParenBlock matchgroup=bladeDelimiter start="\s*(" end=")" contains=@bladePhp,bladePhpParenBlock skipwhite contained 53 syn region bladePhpParenBlock matchgroup=bladeDelimiter start="\s*(" end=")" contains=@bladePhp,bladePhpParenBlock skipwhite contained
36 54
37 syn cluster bladePhp contains=@phpClTop 55 syn cluster bladePhp contains=@phpClTop
38 syn cluster bladeExempt contains=bladeComment,@htmlTop 56 syn cluster bladeExempt contains=bladeComment,bladePhpRegion,bladePhpParenBlock,@htmlTop
39 57
40 syn cluster htmlPreproc add=bladeEcho,bladeComment 58 syn cluster htmlPreproc add=bladeEcho,bladeComment,bladePhpRegion
41 59
42 syn keyword bladeTodo todo fixme xxx contained 60 syn case ignore
61 syn keyword bladeTodo todo fixme xxx note contained
43 62
44 hi def link bladeDelimiter PreProc 63 hi def link bladeDelimiter PreProc
45 hi def link bladeComment Comment 64 hi def link bladeComment Comment
46 hi def link bladeTodo Todo 65 hi def link bladeTodo Todo
47 hi def link bladeKeyword Statement 66 hi def link bladeKeyword Statement