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

Handle bad source input during syntax highlighting #2696

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Feb 11, 2021

If the end condition of a syntax highlighting rule isn't met (i.e., a
code block in a comment is missing a closing ```) it's possible for the
end spans for a rule to be null. Handle this case instead of throwing an
exception.

Fixes b/178035326

If the end condition of a syntax highlighting rule isn't met (i.e., a
code block in a comment is missing a closing ```) it's possible for the
end spans for a rule to be null. Handle this case instead of throwing an
exception.

Fixes b/178035326
@bkonyi bkonyi requested a review from kenzieschmoll February 11, 2021 00:12
@bkonyi bkonyi merged commit e6616ab into master Feb 11, 2021
@bkonyi bkonyi deleted the fix_178035326 branch February 11, 2021 17:28
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.

2 participants