mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the location given to getLocForStartOfLine was an empty line, it would actually return the location of the next line rather than the given location as it should. If the location given to getLocForEndOfLine was inside a token on a line that was either empty or contained whitespace, it would skip to the end of that token and then return the location for the next line. This was an issue for multiline strings, where the string is a single token but it's over multiple lines.
22 KiB
22 KiB