Skip to content

Backport "Test chars safely when highlighting" to 3.3 LTS #372

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

Open
wants to merge 2 commits into
base: backport-lts-3.3-22898
Choose a base branch
from

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Apr 28, 2025

Backports scala#22918 to the 3.3.7.

PR submitted by the release tooling.

som-snytt and others added 2 commits April 28, 2025 16:27
The arrow test at lastOffset - 3 is out-of-range when highlighting,
which parses a snippet of source.

Always check lower bound in testChar.

Don't check as initial condition in testChars because it recurses.
The arrow test at lastOffset - 3 is out-of-range when highlighting,
which parses a snippet of source.

Always check lower bound in testChar.

Don't check as initial condition in testChars because it recurses.

[Cherry-picked fb6cc9b][modified]
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