<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello S/E,</div><div class=""><br class=""></div><div class="">I’d like to put forward a perhaps rather banal change to the Swift lexer</div><div class="">primarily intended to make entering regular expression patterns easier.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/DoubleSpeak/swift-evolution/blob/master/proposals/NNNN-raw-string-escaping.md" class="">https://github.com/DoubleSpeak/swift-evolution/blob/master/proposals/NNNN-raw-string-escaping.md</a></div><div class=""><br class=""></div><div class=""><div class="">With a raw literal a string prefixed by “r” the \ character would have no</div><div class="">special role at all and be processed like any other character i.e.</div><div class=""><br class=""></div></div><div class=""><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="color: #000000" class="">&nbsp; &nbsp;&nbsp;r</span>"\n\(var)\n"<span style="color: #000000" class=""> </span><span style="text-decoration: underline ; color: #000000" class="">=</span><span style="color: #000000" class="">= </span>"\\n\\(var)\\n"</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="color: #000000" class="">&nbsp; &nbsp; r</span>"\?\y\="<span style="color: #000000" class=""> </span><span style="text-decoration: underline ; color: #000000" class="">=</span><span style="color: #000000" class="">= </span>"\\?\\y\\="</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="color: #000000" class="">&nbsp; &nbsp; r</span>"c:\windows\system32"<span style="color: #000000" class=""> </span><span style="text-decoration: underline ; color: #000000" class="">=</span><span style="color: #000000" class="">= </span>"c:\\windows\\system32"</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(0, 0, 0);" class="">&nbsp; &nbsp; r<span style="color: #d12f1b" class="">"""</span></div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; &nbsp; &nbsp; Line One\</div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; &nbsp; &nbsp; Line Two\</div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; &nbsp; &nbsp; """<span style="color: #000000" class=""> </span><span style="text-decoration: underline ; color: #000000" class="">=</span><span style="color: #000000" class="">= </span>"Line One\\\nLineTwo\\"</div><div class=""><br class=""></div><div class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class="">I had considered another version of the proposal where known escapes</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class="">were still processed but it proved too difficult to reason exactly what was</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class="">contained in the string.</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class="">There is a example toolchain available for testing:</div></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class=""><br class=""></div></div></div></div></div></div><div class=""><a href="http://johnholdsworth.com/swift-LOCAL-2017-11-23-a-osx.tar.gz" class="">http://johnholdsworth.com/swift-LOCAL-2017-11-23-a-osx.tar.gz</a></div><div class=""><br class=""></div><div class="">Can we shepard this minor additive change into Swift 4.1?</div><div class=""><br class=""></div><div class="">John</div></body></html>