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

Fixes truncation of long tokens by using utils::getParseText #136

Merged
merged 6 commits into from
Jun 9, 2022

Conversation

dmurdoch
Copy link
Contributor

Fixes #128 . This detects truncated strings by looking for a terminal token starting with "[" but longer; that's the pattern for the substitute utils::getParseData() uses, but not something the parser ever produces for real code.

@hadley hadley merged commit 8434f36 into r-lib:main Jun 9, 2022
@hadley
Copy link
Member

hadley commented Jun 9, 2022

Thanks!

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.

Code with very long string gets modified during highlight()
2 participants