Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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