Hope you can help me with this. I created a simple plugin to highlight TypeScript syntax (also useful for ES6)
Currently, I'm treating the template strings (strings inside backticks ` ) as normal quotes but I'd like to treat them differently especially when there are variables or html tags inside:
Built-in JS highlighter
The class looks like this, I think I have to store the template string in some temporal variable and evaluate it with RegEx but I'm not sure how to do it nor the regular expressions I need to use.