Skip to content

Commit 5aa612f

Browse files
author
gschaal
committed
Add continue and break snippets
See the [Loops section](https://laravel.com/docs/5.3/blade#loops) in the doc
1 parent 4bfd18f commit 5aa612f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Or download the snippets zip file and unzip it into your Packages folder.
5858
| while | @while (`condition`) <br /> **{{-- expr --\}\}** <br /> @endwhile |
5959
| inc | @include('`view.name`', `['some' => 'data']`) |
6060
| each | @each ('`item.view`', $`items`, '`item`', '`empty.view`') |
61-
61+
| continue | @continue('condition') |
62+
| break | @break('condition') |
6263

6364
### Stacks
6465

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@break${1:('${2:condition}')}
4+
]]></content>
5+
<tabTrigger>break</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@continue${1:('${2:condition}')}
4+
]]></content>
5+
<tabTrigger>continue</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>

0 commit comments

Comments
 (0)