<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Fair enough. Plus if Chris Lattner has any strong opinions about the behavior of single quotes, which might be the case given the existing code for handling them in Lexer.cpp, backticks are a damn good alternative. I&#39;d still like to wait to hear back from him or someone else on the core team about that one.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Travis Tilley</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 11, 2015 at 6:48 PM, Kametrixom Tikara <span dir="ltr">&lt;<a href="mailto:kametrixom@icloud.com" target="_blank">kametrixom@icloud.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I think it can just work like this:<div><br></div><div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1"><span style="color:rgb(53,86,138)">struct</span> Test {</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">    <span style="color:#35568a">func</span> hi() {</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        <span style="color:#35568a">let</span> json =</font></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(207,135,36)"><font size="1"><span style="color:#000000">        ```             </span>// Indentation to the left of the back ticks gets erased and nothing more</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        {</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">            <span style="color:#e82300">&quot;Hello&quot;</span>: <span style="color:#35568a">3</span></font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        }</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        ```</font></div><p style="margin:0px;line-height:normal;font-family:Menlo;min-height:16px"><font size="1">        <br></font></p><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        <span style="color:#35568a">let</span> str =</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        ```</font></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(232,35,0)"><font size="1"><span style="color:#000000">        </span>&quot;This is a string&quot;</font></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(207,135,36)"><font size="1"><span style="color:#000000">    ```     </span>// Compiler error: Back ticks not aligned</font></div><p style="margin:0px;line-height:normal;font-family:Menlo;min-height:16px"><font size="1">    <br></font></p><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        <span style="color:#35568a">let</span> hs =</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        ```</font></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(207,135,36)"><font size="1"><span style="color:#000000">    main = interact id      </span>// Compiler error: too little indentation</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">        ```</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">    }</font></div><div style="margin:0px;line-height:normal;font-family:Menlo"><font size="1">}</font></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo"><br></div><div>By just not supporting more complex indentation erasure, we can avoid potential confusion.</div><div><div class="h5"><div><br><blockquote type="cite"><div>On 12 Dec 2015, at 00:35, Travis Tilley &lt;<a href="mailto:ttilley@gmail.com" target="_blank">ttilley@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div style="font-family:verdana,sans-serif">Fair enough point. But wouldn&#39;t we still want indentation erasure which would be counter-intuitive for what we expect from triple backticks? like... a block of json defined in the middle of a function, this having maybe two levels of indentation to be erased. </div><div style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 11, 2015 at 6:26 PM, Drew Crawford <span dir="ltr">&lt;<a href="mailto:drew@sealedabstract.com" target="_blank">drew@sealedabstract.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">That&#39;s an interesting idea!  What about &quot;&quot;&quot; for escaped strings and ``` for unescaped literal strings?<div><br></div><div>The latter is intuitive for me for preformatted text (with JSON et al are), and Swift in fact uses Markdown for doc comments, so we assume some familiarity from the developer.</div></div></blockquote><div> </div></div>
</div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br>
</div></div>