mustache / vim-mustache-handlebars

mustache and handlebars mode for vim
mustache.github.io
455 stars 49 forks source link

helpers can have else clauses too #86

Closed StephaniesHusband closed 5 years ago

StephaniesHusband commented 5 years ago

I see in the match_words values that if and unless are taken care of for having a possible else clause, but user-created helpers can have else clauses as well. Can you add support for that case as well? thx

{{#someHelperName}}
   ...
{{else}}
   ...
{{/someHelperName}}
jsit commented 5 years ago

This should work just fine as-is -- I'm seeing that {{else}} in your example is being highlighted as mustacheConditionals