Closed Frozenfire92 closed 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
This should be merged now: https://github.com/microsoft/vscode/issues/73757
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
if
to be added into the same token as theelse
()
wrapped sub expressions. I suspect just adding these characters to[-a-zA-Z0-9_\\./]
would suffice. It likely will also need support for spaces