Mercurial > ec-dotfiles
annotate vendor/vim-syntax/blade.vim @ 590:756cfd9f5bc8
Add tmux 2.2+ config
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 24 Jul 2016 22:41:54 +0900 |
parents | 7fbadf8bd22e |
children | 0e72765944d4 |
rev | line source |
---|---|
589 | 1 " Vim syntax file |
2 " Language: Blade (Laravel) | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
3 " Maintainer: Jason Walton <jwalton512@gmail.com> |
589 | 4 " Filenames: *.blade.php |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
5 |
589 | 6 if exists('b:current_syntax') |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
7 finish |
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
8 endif |
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
9 |
589 | 10 if !exists("main_syntax") |
11 let main_syntax = 'blade' | |
12 endif | |
13 | |
14 runtime! syntax/html.vim | |
15 unlet! b:current_syntax | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
16 runtime! syntax/php.vim |
589 | 17 unlet! b:current_syntax |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
18 |
589 | 19 syn case match |
20 syn clear htmlError | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
21 |
589 | 22 if has('patch-7.4.1142') |
23 syn iskeyword @,48-57,_,192-255,@-@ | |
24 else | |
25 setlocal iskeyword+=@-@ | |
26 endif | |
27 | |
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 | |
30 syn region bladeComment matchgroup=bladeDelimiter start="{{--" end="--}}" contains=bladeTodo containedin=ALLBUT,@bladeExempt keepend | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
31 |
589 | 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 |
33 syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @empty @endforelse @endwhile @endcan @stop @append @endsection @endpush @show containedin=ALLBUT,@bladeExempt | |
34 | |
35 syn region bladePhpParenBlock matchgroup=bladeDelimiter start="\s*(" end=")" contains=@bladePhp,bladePhpParenBlock skipwhite contained | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
36 |
589 | 37 syn cluster bladePhp contains=@phpClTop |
38 syn cluster bladeExempt contains=bladeComment,@htmlTop | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
39 |
589 | 40 syn cluster htmlPreproc add=bladeEcho,bladeComment |
41 | |
42 syn keyword bladeTodo todo fixme xxx contained | |
43 | |
44 hi def link bladeDelimiter PreProc | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
45 hi def link bladeComment Comment |
589 | 46 hi def link bladeTodo Todo |
47 hi def link bladeKeyword Statement | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
48 |
589 | 49 let b:current_syntax = 'blade' |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
50 |
589 | 51 if exists('main_syntax') && main_syntax == 'blade' |
52 unlet main_syntax | |
538
f5b6dba3308b
Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff
changeset
|
53 endif |