-
Notifications
You must be signed in to change notification settings - Fork 702
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
Boundary escapes don't work in a region #3055
Comments
This is currently not possible because we share a cache of regex matches on the buffer. This cache would not be valid anymore if It might be okay to do it, would use more memory and slow down highlighting, but it would solve this issue. I am not sure it is worth it though. |
I'm really interested in highlighting the delimiters of a region that can be nested, if you see another way of allowing that, I'll take it! I created this issue and #3056 because that was the intuitive way I tried to get the above scenario to work, somebody might have other ideas. |
Another case made tricky: regions whose delimiters are in one format, while the inner data is in another. Example:
The region is in YAML format, but the delimiters are HTML. |
Consider trying to highlight
$(…)
scopes in a Makefile.Steps
Declare those highlighters:
Outcome
The opening and closing boundaries of the region (
$(
and the associated closing paren) remain un-highlighted.Expected
The region's boundaries are highlighted.
It looks like using
\A
and\z
to match the beginning and ending of the region do not work.The text was updated successfully, but these errors were encountered: