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 JavaKeywordsDemo comment pattern #972

Merged
merged 2 commits into from
Oct 16, 2020
Merged

Conversation

Jugen
Copy link
Collaborator

@Jugen Jugen commented Oct 11, 2020

Fixes #970

The JavaKeywordsDemo was recently updated with a way to only compute highlighting on the visible paragraphs instead of on the whole contents of the editor. However the regular expression pattern for comments was originally designed to work on a block of text and not lines of text, which is why the multi-line comments aren't being correctly styled (when using the visible paragraphs highlighting method).

This PR updates the COMMENT_PATTERN to address this, although it's not perfect.

@Jugen Jugen merged commit 1659a16 into master Oct 16, 2020
@Jugen Jugen deleted the JavaKeywordsDemo-pattern-fix branch October 16, 2020 07:36
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.

Question: Can I define my custom Paragraph breaks instead of "\n"?
1 participant