<p dir="auto">Hi there,</p>
<p dir="auto">Just noticed that when writing ruby code in atom there seems to be a bug regarding syntax highlighting after %{}</p>
<p dir="auto">eg if you write the line<br>
object.something(%{(default: $FIlE, or "/asd")})<br>
every thing is highlighted green afterwards?</p>
<p dir="auto">Atom Version 0.103.0 (0.103.0)<br>
Mac OSX 10.9.3</p>
<p dir="auto">Consider the following code fragment, when inserted into the editor the syntax highlighitng shows all the code below the closed string as a string. This is not the case in sublime2 and other text-editors.</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="email.header = &quot;[[\&quot;Received\&quot;, \&quot;by luna.mailgun.net with SMTP mgrt 8788212249833; Fri, 26 Apr 2013 18:50:30 +0000\&quot;], [\&quot;Received\&quot;, \&quot;from [10.20.76.69] (Unknown [50.56.129.169]) by mxa.mailgun.org with ESMTP id 517acc75.4b341f0-worker2; Fri, 26 Apr 2013 18:50:29 -0000 (UTC)\&quot;], [\&quot;Message-Id\&quot;, \&quot;&lt;517ACC75.5010709@app22735278.mailgun.org&gt;\&quot;], [\&quot;Date\&quot;, \&quot;Fri, 26 Apr 2013 11:50:29 -0700\&quot;], [\&quot;From\&quot;, \&quot;Bob &lt;bob@app22735278.mailgun.org&gt;\&quot;], [\&quot;User-Agent\&quot;, \&quot;Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4\&quot;], [\&quot;Mime-Version\&quot;, \&quot;1.0\&quot;], [\&quot;To\&quot;, \&quot;Alice &lt;alice@app22735278.mailgun.org&gt;\&quot;], [\&quot;Subject\&quot;, \&quot;Re: Sample POST request\&quot;], [\&quot;References\&quot;, \&quot;&lt;517AC78B.5060404@app22735278.mailgun.org&gt;\&quot;], [\&quot;In-Reply-To\&quot;, \&quot;&lt;517AC78B.5060404@app22735278.mailgun.org&gt;\&quot;], [\&quot;X-Mailgun-Variables\&quot;, \&quot;{\\\&quot;my_var_1\\\&quot;: \\\&quot;Mailgun Variable #1\\\&quot;, \\\&quot;my-var-2\\\&quot;: \\\&quot;awesome\\\&quot;}\&quot;], [\&quot;Content-Type\&quot;, \&quot;multipart/mixed; boundary=\\\&quot;------------020601070403020003080006\\\&quot;\&quot;], [\&quot;Sender\&quot;, \&quot;bob@app22735278.mailgun.org\&quot;]]&quot;
email.content_type = params['Content-Type']"><pre class="notranslate"><span class="pl-en">email</span><span class="pl-kos">.</span><span class="pl-en">header</span> <span class="pl-c1">=</span> <span class="pl-s">"[[<span class="pl-cce">\"</span>Received<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>by luna.mailgun.net with SMTP mgrt 8788212249833; Fri, 26 Apr 2013 18:50:30 +0000<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Received<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>from [10.20.76.69] (Unknown [50.56.129.169]) by mxa.mailgun.org with ESMTP id 517acc75.4b341f0-worker2; Fri, 26 Apr 2013 18:50:29 -0000 (UTC)<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Message-Id<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;517ACC75.5010709@app22735278.mailgun.org&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Date<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Fri, 26 Apr 2013 11:50:29 -0700<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>From<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Bob &lt;bob@app22735278.mailgun.org&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>User-Agent<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Mime-Version<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>1.0<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>To<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Alice &lt;alice@app22735278.mailgun.org&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Subject<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Re: Sample POST request<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>References<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;517AC78B.5060404@app22735278.mailgun.org&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>In-Reply-To<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;517AC78B.5060404@app22735278.mailgun.org&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>X-Mailgun-Variables<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>{<span class="pl-cce">\\</span><span class="pl-cce">\"</span>my_var_1<span class="pl-cce">\\</span><span class="pl-cce">\"</span>: <span class="pl-cce">\\</span><span class="pl-cce">\"</span>Mailgun Variable #1<span class="pl-cce">\\</span><span class="pl-cce">\"</span>, <span class="pl-cce">\\</span><span class="pl-cce">\"</span>my-var-2<span class="pl-cce">\\</span><span class="pl-cce">\"</span>: <span class="pl-cce">\\</span><span class="pl-cce">\"</span>awesome<span class="pl-cce">\\</span><span class="pl-cce">\"</span>}<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Content-Type<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>multipart/mixed; boundary=<span class="pl-cce">\\</span><span class="pl-cce">\"</span>------------020601070403020003080006<span class="pl-cce">\\</span><span class="pl-cce">\"</span><span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Sender<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>bob@app22735278.mailgun.org<span class="pl-cce">\"</span>]]"</span>
<span class="pl-en">email</span><span class="pl-kos">.</span><span class="pl-en">content_type</span> <span class="pl-c1">=</span> <span class="pl-en">params</span><span class="pl-kos">[</span><span class="pl-s">'Content-Type'</span><span class="pl-kos">]</span></pre></div>