rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Kotlin functions and identifiers with backticks are not highlighted correctly #1921

Open uberto opened 1 year ago

uberto commented 1 year ago

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}`'
tancnle commented 1 year ago

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

sbrannen commented 1 year ago