Skip to content
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

Broken highlighting with ft=htmldjango #105

Open
radimsuckr opened this issue Sep 17, 2018 · 4 comments
Open

Broken highlighting with ft=htmldjango #105

radimsuckr opened this issue Sep 17, 2018 · 4 comments

Comments

@radimsuckr
Copy link

Describe the bug

Rainbow parentheses breaks the Django tags highlighting.

To Reproduce

Open any HTML file with Django template tags and make sure the filetype is set to htmldjango.

Expected behavior

Disable rainbow parentheses for Django tags completely as nested parentheses don't occur in them.

Screenshots

image

Additional context

Syntax highlighting works as expected when I explicitly turn off rainbow parentheses for given buffer.

@luochen1990
Copy link
Owner

can you please provide a minimal complete example file which can reproduce your problem?

@radimsuckr
Copy link
Author

The minimal example is as simple as {% extends "base.html" %}, which results into following screenshot.

image

@luochen1990
Copy link
Owner

you can simply disable rainbow for this filetype. Or if you know about RegExp in Vim, you can define your parentheses for htmldjango files yourself (maybe you will need zero-width matching).

@radimsuckr
Copy link
Author

Yeah, disabling it is an option, but I was hoping that maybe it'd be possible to have HTML rainbow parentheses combined with Django tags.

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

No branches or pull requests

2 participants