jwalton512 / vim-blade

Vim syntax highlighting for Blade templates.
226 stars 37 forks source link

Support custom blade directives and add missing ones #56

Closed adriaanzon closed 8 years ago

adriaanzon commented 8 years ago

Custom directives

Blade allows for custom directives so now you can define those through some variables (g:blade_custom_directives and g:blade_custom_directives_pairs).

Missing directives

Added blade directives @elsecan, @cannot, @elsecannot, @endcannot, @lang, @choice, @break, @continue, @verbatim, @endverbatim.

Added indent for @append and @overwrite

Added support for @php (both the multiline and single line variants)

I tried to make a syntax region for @verbatim, and only highlight html tags and <?php tags in that region, but it did'nt really work well so I just added it to the bladeKeywords group for now. I did add tests for how it should be.

Other stuff

Add note to todo comments and allow those comments to be uppercase.

A recent change to blade allows for :: in directives, added support for that.

jwalton512 commented 8 years ago

Thanks!