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: don't break on nested segments #62

Merged
merged 3 commits into from Aug 16, 2022
Merged

fix: don't break on nested segments #62

merged 3 commits into from Aug 16, 2022

Conversation

scriptcoded
Copy link
Owner

@scriptcoded scriptcoded commented Aug 16, 2022

Fixes #60

There was a bug introduced in the last release that caused nested segments to completely stop the highlighting (#57 (comment)). This PR resolves that issue by changing from break to continue inside the loop. It also adds tests to cover these cases as the bug was not caught by the current tests.

@scriptcoded scriptcoded merged commit 997ee9d into master Aug 16, 2022
@scriptcoded scriptcoded deleted the bugfix-fix-60 branch August 16, 2022 15:51
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 this pull request may close these issues.

BUG: Syntax highlighting stopped after the period separator in DATABASE.TABLENAME syntax.
1 participant