Skip to content

Commit 7c677de

Browse files
committed
Correctly classify assignment tokens as operators
1 parent 6473447 commit 7c677de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/ReadLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ private TokenClassification GetTokenClassification(Token token)
16621662
if ((token.TokenFlags & TokenFlags.Keyword) != 0)
16631663
return TokenClassification.Keyword;
16641664

1665-
if ((token.TokenFlags & (TokenFlags.BinaryOperator | TokenFlags.UnaryOperator)) != 0)
1665+
if ((token.TokenFlags & (TokenFlags.BinaryOperator | TokenFlags.UnaryOperator | TokenFlags.AssignmentOperator)) != 0)
16661666
return TokenClassification.Operator;
16671667

16681668
if ((token.TokenFlags & TokenFlags.TypeName) != 0)

0 commit comments

Comments
 (0)