rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Ruby lexer bug: `:|` in `f { |x:| }` mistakenly interpreted as a symbol

Open UlyssesZh opened this issue 2 years ago • 0 comments

Name of the lexer

Ruby.

Code sample

f { |x:| }

In this example, x: is a keyword argument whose default value is not provided. However, Rouge's Ruby lexer regarded :| as a symbol.

UlyssesZh avatar May 07 '23 22:05 UlyssesZh