CommunityToolkit/ColorCode-Universal

'csharp' name missing for aliases

michael-hawker opened this issue · 3 comments

I think GitHub uses csharp as an identifier:

public class Test {
...
}

But it's not looked for here: https://github.com/WilliamABradley/ColorCode-Universal/blob/master/ColorCode.Core/Compilation/Languages/CSharp.cs#L117 (which I think is what's used for the matching?)

Those just contain the Alternate Aliases, the Language ID is csharp, which is checked against first.

If you look at the Xml Language, it checks xml first, and I added XAML and AXML to the list. Some languages have no Aliases, like I believe Fortran.

Is that the LanguageId? As they have c# instead of csharp so we'd need the other as the alias still, eh?

Thats true, I'll fix that.