Merge pull request #9853 from nathawes/rdar32148117-multiline-string-highlighting-issues

[SyntaxColor] Improve highligting of multiline strings
This commit is contained in:
Nathan Hawes
2017-05-22 18:55:18 -07:00
committed by GitHub
9 changed files with 436 additions and 82 deletions

View File

@@ -81,6 +81,11 @@ public:
else if (Line >= StartLine + Length) {
Length = Line - StartLine + 1;
}
else if (Line < StartLine) {
unsigned Delta = StartLine - Line;
StartLine -= Delta;
Length += Delta;
}
}
};