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

Regions are matched greedily, not recursively #3056

Open
lenormf opened this issue Aug 15, 2019 · 0 comments · May be fixed by #5099
Open

Regions are matched greedily, not recursively #3056

lenormf opened this issue Aug 15, 2019 · 0 comments · May be fixed by #5099

Comments

@lenormf
Copy link
Contributor

lenormf commented Aug 15, 2019

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.

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

Successfully merging a pull request may close this issue.

1 participant