Skip to content

Commit

Permalink
Change Blade snippets scope
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Oct 16, 2017
1 parent 5b86cc9 commit 633c8e9
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions messages/1.3.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ https://github.com/Lykegenes/laravel-5-snippets
#### NEW SNIPPETS

- Auth : id(), login(), loginUsingId, once()
- Blade : improved Blade snippets triggers
- Command : argument()
- Helpers-misc : abort_if(), abort_unless(), app(), resolve(), config(), and many more!

Expand Down
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-can.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
@endcan
]]></content>
<tabTrigger>Blade::can</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @can</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-cannot.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endcannot
]]></content>
<tabTrigger>Blade::cannot</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @cannot</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-choice.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@choice('${1:file.message}', ${2:\$count})
]]></content>
<tabTrigger>Blade::choice</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @choice</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-comment.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
{{-- ${1:some hidden comment} --}}
]]></content>
<tabTrigger>{{--</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade comments</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-each.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@each('${1:view.name}', ${2:\$collection}, ${3:'variable name'}, ${4:'view.empty'})
]]></content>
<tabTrigger>Blade::each</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @each</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-elseif.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@elseif (${1:\$condition})
]]></content>
<tabTrigger>Blade::elseif</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @elseif</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-escapeBraces.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@{{ ${1:This will not be processed by Blade} }}
]]></content>
<tabTrigger>Blade::{{</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade escape curly braces</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-escapedValue.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
{{ ${1:some escaped value} ${2:or 'default'} }}
]]></content>
<tabTrigger>{{</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade {{ echo escaped data }}</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-extends.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@extends('${1:layouts.name}')
]]></content>
<tabTrigger>Blade::extends</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @extends</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-for.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endfor
]]></content>
<tabTrigger>Blade::for</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @for</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-foreach.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endforeach
]]></content>
<tabTrigger>Blade::foreach</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @foreach</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-forelse.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
@endforelse
]]></content>
<tabTrigger>Blade::forelse</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @forelse</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-if.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endif
]]></content>
<tabTrigger>Blade::if</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @if</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-ifelse.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
@endif
]]></content>
<tabTrigger>Blade::ifelse</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @ifelse</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-include.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@include('${1:view.name}', ${1:\$data})
]]></content>
<tabTrigger>Blade::include</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @include</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-lang.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@lang('${1:file.message}')
]]></content>
<tabTrigger>Blade::lang</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @lang</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-push.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endpush
]]></content>
<tabTrigger>Blade::push</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @push</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-section.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@stop
]]></content>
<tabTrigger>Blade::section</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @section</description>
</snippet>
4 changes: 2 additions & 2 deletions snippets/Blade/Blade-stack.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

<snippet>
<content><![CDATA[
@stack('${1:stack name}')
@stack('${1:name}')
]]></content>
<tabTrigger>Blade::stack</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @stack</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-unescaped.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
{!! ${1:some unescaped value} !!}
]]></content>
<tabTrigger>Blade::unescaped</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade {!! echo raw data !!}</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-unless.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endunless
]]></content>
<tabTrigger>Blade::unless</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @unless</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-while.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@endwhile
]]></content>
<tabTrigger>Blade::while</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @while</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/Blade/Blade-yield.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@yield('${1:content}')
]]></content>
<tabTrigger>Blade::yield</tabTrigger>
<scope>text.html</scope>
<scope>text.blade</scope>
<description>Blade @yield</description>
</snippet>

0 comments on commit 633c8e9

Please sign in to comment.