Browse Source

Fix highlighting of 'where' keyword in LINQ query clauses.

pull/940/head
Siegfried Pammer 8 years ago
parent
commit
cdaa3e29c9
  1. 5
      ILSpy/Languages/CSharpHighlightingTokenWriter.cs

5
ILSpy/Languages/CSharpHighlightingTokenWriter.cs

@ -127,7 +127,12 @@ namespace ICSharpCode.ILSpy @@ -127,7 +127,12 @@ namespace ICSharpCode.ILSpy
case "global":
case "dynamic":
case "await":
color = structureKeywordsColor;
break;
case "where":
if (nodeStack.PeekOrDefault() is QueryClause)
color = queryKeywordsColor;
else
color = structureKeywordsColor;
break;
case "in":

Loading…
Cancel
Save