annotate vendor/vim-syntax/blade.vim @ 589:7fbadf8bd22e

Update vendor Change whatever available from official vim
author nanaya <me@myconan.net>
date Thu, 07 Jul 2016 15:59:06 +0900
parents a056f6920d8e
children 0e72765944d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
1 " Vim syntax file
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
4 " Filenames: *.blade.php
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
5
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
10 if !exists("main_syntax")
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
11 let main_syntax = 'blade'
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
12 endif
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
13
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
14 runtime! syntax/html.vim
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
17 unlet! b:current_syntax
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
18
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
19 syn case match
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
20 syn clear htmlError
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
21
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
22 if has('patch-7.4.1142')
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
23 syn iskeyword @,48-57,_,192-255,@-@
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
24 else
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
25 setlocal iskeyword+=@-@
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
26 endif
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
27
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
28 syn region bladeEcho matchgroup=bladeDelimiter start="@\@<!{{" end="}}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
29 syn region bladeEcho matchgroup=bladeDelimiter start="{!!" end="!!}" contains=@bladePhp,bladePhpParenBlock containedin=ALLBUT,@bladeExempt keepend
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
33 syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @empty @endforelse @endwhile @endcan @stop @append @endsection @endpush @show containedin=ALLBUT,@bladeExempt
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
34
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
37 syn cluster bladePhp contains=@phpClTop
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
38 syn cluster bladeExempt contains=bladeComment,@htmlTop
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
39
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
40 syn cluster htmlPreproc add=bladeEcho,bladeComment
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
41
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
42 syn keyword bladeTodo todo fixme xxx contained
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
43
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
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
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
46 hi def link bladeTodo Todo
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
47 hi def link bladeKeyword Statement
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
48
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
49 let b:current_syntax = 'blade'
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
50
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
51 if exists('main_syntax') && main_syntax == 'blade'
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
52 unlet main_syntax
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
53 endif