Skip to content

Twig include inside <style> messes following highlighting up #38

@lxg

Description

@lxg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions