annotate vendor/vim-syntax/blade.vim @ 568:5fac54648ada

Remove unused gitignore.
author nanaya <me@myconan.net>
date Thu, 18 Jun 2015 15:59:54 +0900
parents a056f6920d8e
children 7fbadf8bd22e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
1 " Language: Blade
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
2 " Maintainer: Jason Walton <jwalton512@gmail.com>
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
3 " URL: https://github.com/xsbeats/vim-blade
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
4 " License: DBAD
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
5
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
6 " Check if our syntax is already loaded
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
7 if exists('b:current_syntax') && b:current_syntax == 'blade'
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
8 finish
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
9 endif
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
10
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
11 " Include PHP
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
12 runtime! syntax/php.vim
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
13 silent! unlet b:current_syntax
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
14
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
15 " Echos
547
a056f6920d8e blade echo is multiline.
edogawaconan <me@myconan.net>
parents: 538
diff changeset
16 syn region bladeUnescapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{!!/ end=/!!}\s*/ contains=@phpClTop containedin=ALLBUT,bladeComment
a056f6920d8e blade echo is multiline.
edogawaconan <me@myconan.net>
parents: 538
diff changeset
17 syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{\@!/ end=/}}\s*/ contains=@phpClTop containedin=ALLBUT,bladeComment
a056f6920d8e blade echo is multiline.
edogawaconan <me@myconan.net>
parents: 538
diff changeset
18 syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{{\@!/ end=/}}}/ contains=@phpClTop containedin=ALLBUT,bladeComment
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
19
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
20 " Structures
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
21 syn match bladeStructure /\s*@\(else\|empty\|endfor\|endforeach\|endforelse\|endif\|endpush\|endsection\|endunless\|endwhile\|overwrite\|show\|stop\)\>/
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
22 syn match bladeStructure /\s*@\(append\|choice\|each\|elseif\|extends\|for\|foreach\|forelse\|if\|include\|lang\|push\|section\|stack\|unless\|while\|yield\|\)\>\s*/ nextgroup=bladeParens
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
23 syn region bladeParens matchgroup=bladeParen start=/(/ end=/)/ contained contains=@bladeAll,@phpClTop
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
24
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
25 " Comments
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
26 syn region bladeComments start=/\s*{{--/ end=/--}}/ contains=bladeComment keepend
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
27 syn match bladeComment /.*/ contained containedin=bladeComments
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
28
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
29 " Clusters
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
30 syn cluster bladeAll contains=bladeStructure,bladeParens
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
31
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
32 " Highlighting
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
33 hi def link bladeComment Comment
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
34 hi def link bladeEchoDelim Delimiter
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
35 hi def link bladeParen Delimiter
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
36 hi def link bladeStructure Keyword
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
37
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
38
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
39 if !exists('b:current_syntax')
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
40 let b:current_syntax = 'blade'
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
41 endif