csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

Function Signatures: Function names are not highlighted correctly when parameters are on the next line

Open DustinCampbell opened this issue 8 years ago • 2 comments

From @heshuimu on May 9, 2017 22:50

Environment data

dotnet --info output: VS Code version: 1.12.1 C# Extension version: 1.9.0

Steps to reproduce

qq20170509-173949 2x qq20170509-174413 2x qq20170509-174423 2x

Copied from original issue: OmniSharp/omnisharp-vscode#1469

DustinCampbell avatar May 10 '17 00:05 DustinCampbell

I'm marking this as a bug for now. However, there may not be much we can do about the issue. VS Code colorization is handled by scanning a document line-by-line using regular expressions. This provides colorization that is generally "good enough", but won't every be perfect. If there's not enough information on a single line to identify a particular construct, it's unlikely that it will be colorized precisely.

DustinCampbell avatar May 30 '17 16:05 DustinCampbell

As long as it's just the function name that's incorrect, and it does not break the highlighting of following lines, this is out of scope for textmate highlighting.

This is a job for the semantic highlighting.

wise0704 avatar Aug 08 '23 07:08 wise0704