Skip to content

Commit

Permalink
LINQ keywords are now colored
Browse files Browse the repository at this point in the history
Semi-Colons have been added at the end of Query when needed
  • Loading branch information
fforay committed May 13, 2020
1 parent 9ad5507 commit bfd4507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ILSpy.XSharpLanguage/XSharpHighlightingTokenWriter.prg
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
CASE "destructor"
color := structureKeywordsColor
CASE "where"
color := queryKeywordsColor
color := structureKeywordsColor
CASE "in"
color := queryKeywordsColor
color := structureKeywordsColor
CASE "as"
CASE "astype"
CASE "local"
Expand All @@ -419,7 +419,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
CASE "finally"
color := exceptionKeywordsColor
CASE "when"
color := queryKeywordsColor
color := structureKeywordsColor
CASE "get"
CASE "set"
CASE "add"
Expand Down Expand Up @@ -464,7 +464,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
CASE "join"
CASE "on"
CASE "equals"
color := queryKeywordsColor
color := structureKeywordsColor
CASE "explicit"
CASE "implicit"
CASE "operator"
Expand Down
1 change: 1 addition & 0 deletions ILSpy.XSharpLanguage/XSharpOutputVisitor.prg
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
//
IF (! (clause IS QueryContinuationClause))
//
SELF:WriteToken( ";" )
SELF:NewLine()
ENDIF
ENDIF
Expand Down

0 comments on commit bfd4507

Please sign in to comment.