Highlight template literals

  • Hello,

    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

    TS highlighter:

    WebStorm 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.

    My styles and plugins in the Plugin-Store.

    ♪Quiero robarle los minutos a las horas pa' que mis padres nunca se me pongan viejos...♫

    Edited once, last by Caribe_Soy ().