[swift-evolution] multi-line string literals.
brent at architechies.com
Tue Apr 26 20:43:10 CDT 2016
> Doesn't strike me as a problem needing a solution, though. Strings are syntax-colored differently than actual code. So if it's really runaway, you're likely to notice the wrong color. And the likelihood of the code actually still compiling after grabbing the next random quote to terminate its string is rather small, too.
Personally, I've noticed in the last few days that I don't actually trust syntax highlighting very much to tell me where the end of a complicated string literal is, particularly when it uses complex features like multiline strings, escapes, and interpolations. Xcode and TextMate *are* both usually pretty reliable, but not always, and I have a lot of experience with older text editors with worse highlighting. As a result, I seem to automatically dismiss "obviously wrong" highlighting.
More information about the swift-evolution