mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #9853 from nathawes/rdar32148117-multiline-string-highlighting-issues
[SyntaxColor] Improve highligting of multiline strings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user