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

Recognize escaped quote characters in strings #51

Closed duncanbeevers closed 10 years ago

duncanbeevers commented 10 years ago

Recognize escaped single and double quote characters within their respective string types.

'"' was already recognized as a complete string, now so is '\'' "'" was already recognized as a complete string, now so is "\""

Unifies #string-double-quoted and #string-single-quoted includes under a common #string clause.

Adds more quoting examples to template.handlebars

Normalizes beginCaptures+endCaptures declaration order.

Classifies intra-string escaped quotes as constant.character.escape.js for syntax coloring.

daaain commented 10 years ago

Great catch, thank you so much!