-
Notifications
You must be signed in to change notification settings - Fork 405
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
Update prism.js
to match new webhelp highlight colors
#2670
Changes from 4 commits
58115e7
3dbd332
c20cf46
25a52c6
c3b5fe8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,10 @@ class HighlightingTest : BaseAbstractTest() { | |
assertTrue(children?.get(it.first)?.style?.contains(it.second) == true) | ||
val annotation = children?.first()?.children?.first() | ||
|
||
assertTrue(annotation?.children?.get(0)?.style?.contains(TokenStyle.Annotation) == true) | ||
assertTrue(annotation?.children?.get(1)?.children?.first()?.style?.contains(TokenStyle.Annotation) == true) | ||
val annotationStyles = setOf(TokenStyle.Annotation, TokenStyle.Builtin) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's a good question, you were the one that added the type :) It was already in Public API, so I just used it.
Sure, I can fix it for html-only, but let's then delete There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I hoped somebody tells me what it means) |
||
assertTrue(annotation?.children?.get(0)?.style?.containsAll(annotationStyles) == true) | ||
assertTrue(annotation?.children?.get(1)?.children?.first()?.style?.containsAll(annotationStyles) == true) | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, if a text element had >2
TokenStyle
styles, it was rendered as