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
Regions are matched greedily, not recursively #3056
Comments
This was referenced Aug 15, 2019
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the same context as in #3055, adding this time matching nested scopes i.e.
$(… $(…)…)
.This issue probably also depends on #3055.
Steps
Same as in #3055.
Outcome
If #3055 were fixed, only the opening and closing delimiters of the region would be matched.
Expected
Regions are detected as being nested, and so all opening and closing delimiters are highlighted.
It's my understanding that when regions are nested, only the one with the largest scope (which contains the nested scopes) will be highlighted, which makes relying on
\A
and\z
moot.The text was updated successfully, but these errors were encountered: