rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Kotlin functions and identifiers with backticks are not highlighted correctly

Open uberto opened this issue 2 years ago • 2 comments

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}`'

uberto avatar Jan 24 '23 02:01 uberto

Relates to https://github.com/rouge-ruby/rouge/pull/1326

tancnle avatar May 01 '23 00:05 tancnle

  • related to https://github.com/junit-team/junit5/issues/3287

sbrannen avatar May 07 '23 13:05 sbrannen