Closed VapidLinus closed 2 months ago
Interesting. Is it happening with the latest eap ?
I've taken a look, and this doesn't look like it's possible to do anything about it. Contrary to other languages, C# does not recognize expressions as a single token, instead, it parses and recognizes individual tokens separately.
What that means is that, unlike in Java or Kotlin, the expression Color.FromArgb(r, g, b)
is not recognized as a token, but Color
, .
, FromArgb
etc., separately. As a result, I can't colorize the expression directly. However, I do offer the option to colorize the whole line, with the caveats that:
For now I don't want to do extra work for C#, especially since it's not my language of choice. If someone wants to take upon this task and find a solution, or even open an issue in Rider's YouTrack to better tokenize C# expressions, be my guest.
Describe the bug
The
Detect Color.FromArgb
option seems to break when placed in list along with other elements:This is what it looks like without the option enabled:
To Reproduce
Color.FromArgb()
call as the first element and something else as the second entry.Expected Behavior
For each line to contain its own color and not spread over other lines.
Environment