Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shnhrrsn committed Sep 11, 2017
1 parent 10a6f61 commit 33859c9
Show file tree
Hide file tree
Showing 29 changed files with 227 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Grind Stone Syntax Highlighter for Sublime
This package adds syntax definitions to Sublime for the [Grind](https://grind.rocks) Stone engine.

This package adds syntax definitions to Sublime for the [Grind](https://grind.rocks) Stone engine. This package has been adapted from [Medalink/laravel-blade](https://github.com/Medalink/laravel-blade).
## Credits
This package has been adapted from [Medalink/laravel-blade](https://github.com/Medalink/laravel-blade) and [dev4dev/blade-snippets](https://github.com/dev4dev/blade-snippets).
7 changes: 7 additions & 0 deletions Snippets/Stone @break.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@break${1:('${2:condition}')}
]]></content>
<tabTrigger>break</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @component.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@component('${1:component}', '${2:data}')
${3:{{-- expr --\}\}}
@endcomponent
]]></content>
<tabTrigger>component</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @continue.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@continue${1:('${2:condition}')}
]]></content>
<tabTrigger>continue</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @each.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@each('${1:view.name}', ${2:items}, '${3:item}', '${4:view.empty}')$0
]]></content>
<tabTrigger>each</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Stone @else.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
@else
${3:{{-- false expr --\}\}}$0
]]></content>
<tabTrigger>else</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Stone @elseif.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
@elseif(${1:condition})
${2:{{-- true expr --\}\}}$0
]]></content>
<tabTrigger>elseif</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endcomponent.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endcomponent$0
]]></content>
<tabTrigger>endcomponent</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endfor.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endfor$0
]]></content>
<tabTrigger>endfor</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endif.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endif$0
]]></content>
<tabTrigger>endif</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endmacro.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endmacro$0
]]></content>
<tabTrigger>endmacro</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endsection.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endsection$0
]]></content>
<tabTrigger>endsection</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endslot.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endslot$0
]]></content>
<tabTrigger>endslot</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endunless.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endunless$0
]]></content>
<tabTrigger>endunless</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @endwhile.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@endwhile$0
]]></content>
<tabTrigger>endwhile</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @extends.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@extends('${1:view}')$0
]]></content>
<tabTrigger>extends</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @for.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@for(const ${1:item} of ${2:items})
${3:{{-- expr --\}\}}
@endfor$0
]]></content>
<tabTrigger>for</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
11 changes: 11 additions & 0 deletions Snippets/Stone @hasSection.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
@hasSection('${1:name}')
${2:{{-- true expr --\}\}}
@else
${3:{{-- false expr --\}\}}
@endif$0
]]></content>
<tabTrigger>hasSection</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
11 changes: 11 additions & 0 deletions Snippets/Stone @if @else.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
@if(${1:condition})
${2:{{-- true expr --\}\}}
@else
${3:{{-- false expr --\}\}}
@endif$0
]]></content>
<tabTrigger>ifelse</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @if.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@if(${1:condition})
${2:{{-- expr --\}\}}
@endif$0
]]></content>
<tabTrigger>if</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @include.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@include('${1:view.name}'${2:, {
${3:some}: ${4:'data'}
\}})$0
]]></content>
<tabTrigger>include</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @macro.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@macro('${1:name}'${2:, ${3:arg}})
${0:{{-- expr --\}\}}
@endmacro
]]></content>
<tabTrigger>macro</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @section.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@section('${1:name}')
${0:{{-- expr --\}\}}
@endsection
]]></content>
<tabTrigger>section</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @slot.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@slot('${1:slot}')
${0:{{-- expr --\}\}}
@endslot
]]></content>
<tabTrigger>slot</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @super.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@super
]]></content>
<tabTrigger>super</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @unless.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@unless(${1:condition})
${0:{{-- expr --\}\}}
@endunless
]]></content>
<tabTrigger>unless</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
9 changes: 9 additions & 0 deletions Snippets/Stone @while.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
@while(${1:condition})
${0:{{-- expr --\}\}}
@endwhile
]]></content>
<tabTrigger>while</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone @yield.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@yield('${1:name}'${2:, '${3:default}'})$0
]]></content>
<tabTrigger>yield</tabTrigger>
<scope>text.html.stone</scope>
</snippet>
7 changes: 7 additions & 0 deletions Snippets/Stone Comment.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
{{-- ${0:comment} --}}
]]></content>
<tabTrigger>comment</tabTrigger>
<scope>text.html.stone</scope>
</snippet>

0 comments on commit 33859c9

Please sign in to comment.