annotate vendor/vim-syntax/blade.vim @ 682:88888f40c628

[vimrc] Disable indent plugin Less predictable behavior with it enabled.
author nanaya <me@nanaya.pro>
date Fri, 24 Jun 2022 22:50:19 +0900
parents 11e00204fb18
children
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')
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
23 syn iskeyword @,48-57,_,192-255,@-@,:
589
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
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
32 syn keyword bladeKeyword @if @elseif @foreach @forelse @for @while @can @cannot @elsecan @elsecannot @include
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
33 \ @includeIf @each @inject @extends @section @stack @push @unless @yield @parent @hasSection @break @continue
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 595
diff changeset
34 \ @unset @lang @choice @component @slot @prepend @json @isset @auth @guest @switch @case @includeFirst @empty
625
11e00204fb18 Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
35 \ @includeWhen
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
36 \ nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
37
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 595
diff changeset
38 syn keyword bladeKeyword @else @endif @endunless @endfor @endforeach @endforelse @endwhile @endcan
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
39 \ @endcannot @stop @append @endsection @endpush @show @overwrite @verbatim @endverbatim @endcomponent
612
b305f2ce5f88 Update vendored files
nanaya <me@nanaya.pro>
parents: 595
diff changeset
40 \ @endslot @endprepend @endisset @endempty @endauth @endguest @endswitch
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
41 \ containedin=ALLBUT,@bladeExempt
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
42
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
43 if exists('g:blade_custom_directives')
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
44 exe "syn keyword bladeKeyword @" . join(g:blade_custom_directives, ' @') . " nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt"
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
45 endif
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
46 if exists('g:blade_custom_directives_pairs')
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
47 exe "syn keyword bladeKeyword @" . join(keys(g:blade_custom_directives_pairs), ' @') . " nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt"
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
48 exe "syn keyword bladeKeyword @" . join(values(g:blade_custom_directives_pairs), ' @') . " containedin=ALLBUT,@bladeExempt"
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
49 endif
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
50
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
51 syn region bladePhpRegion matchgroup=bladeKeyword start="\<@php\>\s*(\@!" end="\<@endphp\>" contains=@bladePhp containedin=ALLBUT,@bladeExempt keepend
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
52 syn match bladeKeyword "@php\ze\s*(" nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
53
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
54 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
55
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
56 syn cluster bladePhp contains=@phpClTop
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
57 syn cluster bladeExempt contains=bladeComment,bladePhpRegion,bladePhpParenBlock,@htmlTop
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
58
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
59 syn cluster htmlPreproc add=bladeEcho,bladeComment,bladePhpRegion
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
60
595
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
61 syn case ignore
0e72765944d4 Update vendors
nanaya <me@myconan.net>
parents: 589
diff changeset
62 syn keyword bladeTodo todo fixme xxx note contained
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
63
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
64 hi def link bladeDelimiter PreProc
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
65 hi def link bladeComment Comment
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
66 hi def link bladeTodo Todo
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
67 hi def link bladeKeyword Statement
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
68
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
69 let b:current_syntax = 'blade'
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
70
589
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
71 if exists('main_syntax') && main_syntax == 'blade'
7fbadf8bd22e Update vendor
nanaya <me@myconan.net>
parents: 547
diff changeset
72 unlet main_syntax
538
f5b6dba3308b Add syntax highlight for blade (laravel).
edogawaconan <me@myconan.net>
parents:
diff changeset
73 endif