rouge
rouge copied to clipboard
`import static` is incorrectly parsed in Java
Name of the lexer
Java
Code sample
import static org.junit.jupiter.api.Assertions.assertEquals;
import, static, org, and junit.jupiter.api.Assertions.assertEquals are all highlighted differently.
import static statements should be treated the same as normal import statements.
Additional context
- First reported in https://github.com/junit-team/junit5/issues/3287
- Example: https://junit.org/junit5/docs/5.9.3/user-guide/#writing-tests