-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twig syntax highlighting broken #881
Comments
It looks like the Twig lexer is a subclass of the Jinja lexer, which does not include an assignment operator: For reference, the statement seems to render correctly on GitHub: {% set a = 'b' %} GitHub uses the Twig TextMate bundle for highlighting Twig snippets. |
This contribution has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. |
Support for |
Hi,
First, sorry, I don't know anything about Ruby so I cant' give an example that is not a Jekyll template. Jekyll team confirmed that this is a Rouge issue (jekyll/jekyll#6844).
So here it is, hoping that you'll be able to understand and reproduce the bug.
Rouge syntax highlighting is broken with Twig. Consider the following Jekyll code blocks containing a perfectly valid Twig syntax:
Both outputs the following HTML:
Notice the err class attributed to the equal sign.
Steps to reproduce
The text was updated successfully, but these errors were encountered: