Browse Source

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

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

7
ILSpy/Languages/CSharpHighlightingTokenWriter.cs

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

Loading…
Cancel
Save