atom / language-csharp

C# language support for Atom
Other
62 stars 53 forks source link

Method return types with multiple generic types are not highlighted #88

Closed damieng closed 6 years ago

damieng commented 7 years ago

Sample code;

Dictionary<String, String> DoSomething<T>() {
}

Current result;

image

Expected result:

Second instance of String would be correctly highlighted.

damieng commented 7 years ago

Note: This is a non-trivial fix because of the way methods/functions have a highly variable signature and a lack of backtracking in the textmate based engine.

50Wliu commented 7 years ago

As I commented in #51, would taking a look at how language-java implements generics help, considering how similar the two languages are?