madskristensen / RainbowBraces

A Visual Studio extension
Apache License 2.0
132 stars 7 forks source link

Method call parameters and casts unexpectedly coloured #18

Open kiwiant opened 1 year ago

kiwiant commented 1 year ago

Describe the bug Curley braces working well but the colours also apply to items in C# such as casts and method calls. Maybe by design but my preference would be to exclude (perhaps Enhancement rather than Bug).

To Reproduce The following statements show orange for the method calls and red for the int cast: var item = await GetSingleAsync((int)id, cancellationToken).ConfigureAwait(false);

Other examples include class and method attributes including their parameters, and interpolated strings:

[HttpGet]
[Route("/register")]
$"{firstName} {lastName}";

Expected behavior Use the default colour for curly braces and related brackets if not used for code blocks.

Screenshot 2022-09-07 095721

PS: Loving this extension and working well with Dark+ theme.

austinstanding commented 1 year ago

I've likewise noticed colorization of brackets for array declarations:

Object[] arrayVariable;

A low priority to be sure, I'm excited to see this coming together.