-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
User guide highlights Java and Kotlin code wrong #3287
Comments
We just merged #3267 to improve the accessibility of the web version of the User Guide. To which version of the User Guide are you referring? |
That's in It's due to the syntax highlighter which doesn't know how to parse Kotlin's backtick method names. The same issue can be seen in |
As far as I understand it, this is out of our control. Rather, it's an issue with Asciidoc (or perhaps more specifically with the Rouge syntax highlighting feature). |
Similar to what I stated above about Kotlin backtick quoted method names, the syntax highlighter does not know how to properly parse static imports in Java source code. |
Another one: double quotes in Java text blocks. For example, |
All of the issues you have reported are due to deficiencies in the Java lexer in the Rouge project. Thus, the JUnit team cannot address them. However, the JUnit team could consider switching to the CodeRay or Pygments syntax highlighters which are also supported by Asciidoc. But if we switch the syntax highlighter, that would revert the accessibility changes made in conjunction with #3071. In light of that, I think the best course of action is to raise issue's with the Rouge project. @junit-team/junit-5, thoughts? |
This has already been reported in rouge-ruby/rouge#1921. |
@rillig, I have reported your findings to the Rouge team here: |
I also raised the following issue which should address support for several missing keywords. |
Let's see if anybody from the Twittersphere can help... |
Steps to reproduce
Look at the rendered user guide (either the HTML or the PDF version):
exception absence testing
, the middle word has a different color than the outer words, even though the words are part of the same identifier.import static org.junit
is highlighted inconsistently. The wordstatic
is highlighed like other class names, the wordsorg
andjunit
are colored differently.On a related note, the highlighting colors in the HTML and PDF versions differ unnecessarily.
The text was updated successfully, but these errors were encountered: