jonsmithers / vim-html-template-literals

Syntax highlighting for html template literals in javascript (as in lit-html and polymer 3)
MIT License
71 stars 10 forks source link

CSS within <style> elements is not highlighted. #20

Closed alanwj closed 3 years ago

alanwj commented 3 years ago

Example template string:

const s = html`<style>p { font-weight: bold; }</style>`;

The content of the style tag does not get highlighted as CSS.

Using a separate css tagged template is a workaround, but it would be a nice feature if this worked within an html template string.

jonsmithers commented 3 years ago

I think https://github.com/jonsmithers/vim-html-template-literals/commit/e6f3f8ffaae9c2f9deea2bbb596b64468041616c fixed this issue as well. Thanks for reporting!

alanwj commented 3 years ago

Both CSS highlighting issues I reported appear fixed. Thanks for the quick fix!