Skip to content

Commit 335b7d3

Browse files
committed
Merge pull request #157 from Boddlnagg/fix-153
Fix multiline string token highlighting
2 parents fca35ab + 94992cf commit 335b7d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VisualRust/RustClassifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ public IEnumerable<ITagSpan<ClassificationTag>> GetTags(NormalizedSnapshotSpanCo
116116
{
117117
UpdateMultilineDict(curSpan, lastType, RustLexer.BLOCK_COMMENT);
118118
}
119-
else if( lastType == RustLexer.LIT_STR || lastType == RustLexer.LIT_STR_RAW
120-
|| lastType == RustLexer.LIT_BINARY || lastType == RustLexer.LIT_BINARY_RAW
119+
else if((lastType == RustLexer.LIT_STR || lastType == RustLexer.LIT_STR_RAW
120+
|| lastType == RustLexer.LIT_BINARY || lastType == RustLexer.LIT_BINARY_RAW)
121121
&& !lastToken.Text.EndsWith("\""))
122122
{
123123
UpdateMultilineDict(curSpan, lastType, RustLexer.LIT_STR);

0 commit comments

Comments
 (0)