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

Fix popping subsyntaxes that end consecutively #1246

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

xcb-xwii
Copy link
Contributor

@xcb-xwii xcb-xwii commented Dec 19, 2022

Without fix, after a subsyntax is popped, the ending delimiter for the new subsyntax is not checked for. e.g.:

  • subsyntax A ends with ] and B ends with }
  • on reaching }], B is popped, but ] would be matched against the patterns of A without checking for the ending first

This is fixed by looping until no more subsyntaxes can be popped.

@jgmdev
Copy link
Member

jgmdev commented Dec 28, 2022

Everything tested seems to be working, lets merge this!

@jgmdev jgmdev merged commit 271a804 into lite-xl:master Dec 28, 2022
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants