You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently not all syntax features of C# are highlighted.
My suggestion includes the following (if you would find something missing, feel free to add):
Missing features
For the sake of completeness, I have tried to explicitly assign a feature to a language version here. I could not find the associated standard/proposal for each feature but they do exist.
voidM(objecto1,objecto2){vart=(o1, o2);if(t is(int,string)){}switch(o1){caseint:break;casestring:break;}}boolIsLetter(charc)=> c is(>= 'a' and <= 'z') or (>= 'A' and <= 'Z');
Null checks
publicvoidMethod(object?nullable){if(nullable isnull){}if(nullable is not null){}}
Defaults
publicvoidX(){intx=default;}
implicit new
publicvoidMethod(){MyKnownTypevalue=new();}
Wrong implemented features
Extension method resolving
namespaceN1{publicstaticclassD{publicstaticvoidF(thisinti)=> Console.WriteLine($"D.F({i})");}}namespaceN2{using N1;classTest{staticvoidMain(string[]args){1.F();// ^^ Why is this red?}}}
The text was updated successfully, but these errors were encountered:
See github-linguist/linguist#5838
Describe the enhancement
Currently not all syntax features of C# are highlighted.
My suggestion includes the following (if you would find something missing, feel free to add):
Missing features
For the sake of completeness, I have tried to explicitly assign a feature to a language version here. I could not find the associated standard/proposal for each feature but they do exist.
Standard (Draft v6)
C# language standard - ECMA-TC49-TG2
Unsafe blocks (ECMA Draftv6 22.2)
Pointers & pointer fixture (ECMA Draftv6 22.7)
C# 9
Native Integer Primitives (CSharp 9.0 Proposal)
Function pointers (CSharp 9.0 Proposal)
Static anonymous functions (CSharp 9.0 Proposal)
With expressions (CSharp 9.0 Proposal)
C# 10
Global Using Directives (CSharp 10.0 Proposal)
Records (CSharp 10.0 Proposal)
Enhanced Pattern Matching (CSharp 9.0 Proposal + CSharp 10.0 Proposal)
Null checks
Defaults
implicit new
Wrong implemented features
Extension method resolving
The text was updated successfully, but these errors were encountered: