rouge
rouge copied to clipboard
Kotlin functions and identifiers with backticks are not highlighted correctly
This is a regression for #906 and #996
Name of the lexer Kotlin lexter
Code sample A sample of the code that produces the bug.
@Test
fun `adding one and two gives three`(){
assertEquals(3, 1+2)
}
It also helps if you can provide a link to a code sample on rouge.jneen.net.
Additional context
It seems to be related with removing the regex
name_backtick = %r'#{name}|`#{name}`'
Relates to https://github.com/rouge-ruby/rouge/pull/1326
- related to https://github.com/junit-team/junit5/issues/3287