In a Ruby expression like
`f ? /.*/ : /abc/`
the lexer produces incorrect syntax highlighting, in that it does not recognize the first slash as the start of a regular expression. A crucial condition seems to be, that the regexp occurs within a ternary operator (?:) and ends with an asterisk.
The attached screenshot shows the bug. It contains two semantically equivalent assignment statements. The first one, using the keyword if, gets correct syntax highlight, while the second one, using the ternary ?: operator, is not.
I will upload a patch latter in https://github.com/ScintillaOrg/lexilla/issues/65
This is unrelated to "Code folding for Ruby 3 endless method definition" so should be in its own issue on GitHub.
This was fixed with https://github.com/ScintillaOrg/lexilla/issues/69 .