php-twig icon indicating copy to clipboard operation
php-twig copied to clipboard

Twig include inside <style> messes following highlighting up

Open lxg opened this issue 8 years ago • 0 comments

Inside a Twig/HTML file, the following code breaks all following code’s highlighting:

    <style type="text/css">
    {% include "FoobarBundle:Foo:bar.css.twig" %}
    </style>

(If anybody wonders why the styles are loaded into the template, this is for usage with @dompdf where the CSS will be processed on the server side.)

I’m not familiar enough with the code to provide a patch, but I’d be happy to test and/or provide more feedback.

lxg avatar Jan 05 '17 22:01 lxg