Skip to content

Commit

Permalink
Add shortcode from Blade Wordpress Plugin
Browse files Browse the repository at this point in the history
The Blade Wordpress plugin use specific snippet to blade:
* wpquery
* wpposts
* acfrepeater
* wpempty
* wpend
* acfend

Check this for all infos: https://it.wordpress.org/plugins/blade/
  • Loading branch information
heavybeard committed Oct 6, 2016
1 parent cdbb0fc commit d0d56c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blade.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contexts:
0: punctuation.section.embedded.end.php
pop: true

- match: '(\s{0}|^)(\@)\b(debug|embed|macrodef|set|unset|if|elseif|forelse|foreach|for|while|extends|unless|each|yield|lang|choice|section|include|render|block|can|cannot|inject|partial|hasSection|elsecan|elsecannot|stack|push|layout|continue|break|minify|macro|servers|task|hipchat|slack)\b(?=(|\s*|)\()'
- match: '(\s{0}|^)(\@)\b(debug|embed|macrodef|set|unset|if|elseif|forelse|foreach|for|while|extends|unless|each|yield|lang|choice|section|include|render|block|can|cannot|inject|partial|hasSection|elsecan|elsecannot|stack|push|layout|continue|break|minify|macro|servers|task|hipchat|slack|wpquery|wpposts|acfrepeater)\b(?=(|\s*|)\()'
captures:
0: punctuation.section.embedded.php
2: constant.other.inline-data.html
Expand All @@ -90,7 +90,7 @@ contexts:
pop: true
- include: 'scope:source.php'

- match: '(\s{0}|^)(\@)\b(breakpoint|endmacro|endembed|empty|endif|endforelse|endforeach|endfor|endwhile|else|endunless|show|stop|endblock|endpartial|continue|break|endsection|parent|overwrite|endcan|endcannot|append|endpush|markdown|endmarkdown|endminify|endtask|setup|after|endsetup|endafter)\b'
- match: '(\s{0}|^)(\@)\b(breakpoint|endmacro|endembed|empty|endif|endforelse|endforeach|endfor|endwhile|else|endunless|show|stop|endblock|endpartial|continue|break|endsection|parent|overwrite|endcan|endcannot|append|endpush|markdown|endmarkdown|endminify|endtask|setup|after|endsetup|endafter|wpempty|wpend|acfend)\b'
scope: custom.compiler.blade.php
captures:
0: punctuation.section.embedded.php
Expand Down

0 comments on commit d0d56c3

Please sign in to comment.