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

Bug with shorthand ruby string interpolation #1944

Closed ltickett closed 1 year ago

ltickett commented 1 year ago

Name of the lexer Ruby

Code sample

`%(a #{interpolation_variable} b)`

It also helps if you can provide a link to a code sample on rouge.jneen.net.

Additional context

This does work:

`%Q(a #{interpolation_variable} b)`

See https://gitlab.com/gitlab-org/gitlab/-/issues/384398