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

[vscode] strange behaviour with else if and () subexpressions #101

Closed Frozenfire92 closed 5 years ago

Frozenfire92 commented 5 years ago

Screen Shot 2019-03-23 at 4 02 34 PM

My investigation led me to this line

https://github.com/daaain/Handlebars/blob/790f2b0222098a3a236bd9e91bb9a039eeca4d8e/grammars/Handlebars.json#L634

it appears the regex needs two things

daaain commented 5 years ago

Thanks a lot for the report and even more so for finding where to update the code!

I managed to add support for subexpressions, but I'm not 100% sure how to get the changes picked up by the VSCode team so I asked them, let's see what they say: https://twitter.com/daaain/status/1117115077654712320

daaain commented 5 years ago

This should be merged now: https://github.com/microsoft/vscode/issues/73757