Skip to content

Fix JavaKeywordsDemo comment pattern#972

Merged
Jugen merged 2 commits intomasterfrom
JavaKeywordsDemo-pattern-fix
Oct 16, 2020
Merged

Fix JavaKeywordsDemo comment pattern#972
Jugen merged 2 commits intomasterfrom
JavaKeywordsDemo-pattern-fix

Conversation

@Jugen
Copy link
Copy Markdown
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