rouge icon indicating copy to clipboard operation
rouge copied to clipboard

`import static` is incorrectly parsed in Java

Open sbrannen opened this issue 2 years ago • 0 comments

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

sbrannen avatar May 07 '23 14:05 sbrannen