daaain / Handlebars

Fullest Handlebars.js templating support for Sublime Text 2 / 3. Also drives syntax colouring on Github and in Visual Studio Code. Install from: https://packagecontrol.io/packages/Handlebars.
MIT License
301 stars 48 forks source link

Comments around expression are assumed to be closed on expression close #13

Closed henrahmagix closed 11 years ago

henrahmagix commented 11 years ago

The highlighter assumes a comment is closed as soon as it meets }}, ignoring any opening {{ within the comment.

henrahmagix commented 11 years ago

This is in relation to #14, and since this handlebars doc (thanks @daaain) says expressions can't be commented as they'll leave a trailing }} in the HTML, this is redundant and in fact rather helpful!

henrahmagix commented 11 years ago

(Also ignore the bad code in the example: I hadn't realised then that you can't do regular Javascript inside in {{#if}})