<p dir="auto">Consider a series of quoted strings in an array in ruby:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="states = ['AL', 'AK', 'AZ', 'AR', 'CO', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'RI', 'SC', 'SD', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY']"><pre class="notranslate"><span class="pl-s1">states</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'AL'</span><span class="pl-kos">,</span> <span class="pl-s">'AK'</span><span class="pl-kos">,</span> <span class="pl-s">'AZ'</span><span class="pl-kos">,</span> <span class="pl-s">'AR'</span><span class="pl-kos">,</span> <span class="pl-s">'CO'</span><span class="pl-kos">,</span> <span class="pl-s">'DE'</span><span class="pl-kos">,</span> <span class="pl-s">'FL'</span><span class="pl-kos">,</span> <span class="pl-s">'GA'</span><span class="pl-kos">,</span> <span class="pl-s">'HI'</span><span class="pl-kos">,</span> <span class="pl-s">'ID'</span><span class="pl-kos">,</span> <span class="pl-s">'IL'</span><span class="pl-kos">,</span> <span class="pl-s">'IN'</span><span class="pl-kos">,</span> <span class="pl-s">'IA'</span><span class="pl-kos">,</span> <span class="pl-s">'KS'</span><span class="pl-kos">,</span> <span class="pl-s">'KY'</span><span class="pl-kos">,</span> <span class="pl-s">'LA'</span><span class="pl-kos">,</span> <span class="pl-s">'ME'</span><span class="pl-kos">,</span> <span class="pl-s">'MD'</span><span class="pl-kos">,</span> <span class="pl-s">'MI'</span><span class="pl-kos">,</span> <span class="pl-s">'MN'</span><span class="pl-kos">,</span> <span class="pl-s">'MS'</span><span class="pl-kos">,</span> <span class="pl-s">'MO'</span><span class="pl-kos">,</span> <span class="pl-s">'MT'</span><span class="pl-kos">,</span> <span class="pl-s">'NE'</span><span class="pl-kos">,</span> <span class="pl-s">'NV'</span><span class="pl-kos">,</span> <span class="pl-s">'NH'</span><span class="pl-kos">,</span> <span class="pl-s">'NJ'</span><span class="pl-kos">,</span> <span class="pl-s">'NM'</span><span class="pl-kos">,</span> <span class="pl-s">'NY'</span><span class="pl-kos">,</span> <span class="pl-s">'NC'</span><span class="pl-kos">,</span> <span class="pl-s">'ND'</span><span class="pl-kos">,</span> <span class="pl-s">'OH'</span><span class="pl-kos">,</span> <span class="pl-s">'OK'</span><span class="pl-kos">,</span> <span class="pl-s">'OR'</span><span class="pl-kos">,</span> <span class="pl-s">'RI'</span><span class="pl-kos">,</span> <span class="pl-s">'SC'</span><span class="pl-kos">,</span> <span class="pl-s">'SD'</span><span class="pl-kos">,</span> <span class="pl-s">'TX'</span><span class="pl-kos">,</span> <span class="pl-s">'UT'</span><span class="pl-kos">,</span> <span class="pl-s">'VT'</span><span class="pl-kos">,</span> <span class="pl-s">'VA'</span><span class="pl-kos">,</span> <span class="pl-s">'WA'</span><span class="pl-kos">,</span> <span class="pl-s">'WV'</span><span class="pl-kos">,</span> <span class="pl-s">'WI'</span><span class="pl-kos">,</span> <span class="pl-s">'WY'</span><span class="pl-kos">]</span></pre></div>
<p dir="auto">In atom, if this list stopped at <code class="notranslate">MI</code> syntax highlighting would resume as normal. However, it acts as if the rest of the file has a single quote at the top:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/49549/2928565/eb0b968c-d77e-11e3-934c-1b7c165ada03.gif"><img src="https://cloud.githubusercontent.com/assets/49549/2928565/eb0b968c-d77e-11e3-934c-1b7c165ada03.gif" alt="quote-bug" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">I'm using the <a href="https://atom.io/themes/tomorrow" rel="nofollow">Tomorrow theme</a> but it shows up in others as well. This also happens in python, but the quote limit is one less and only the rest of the line is unquoted. Same with C, although again the quote limit changes. Very odd.</p>
<p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="                    PrintAndLog(u&quot;SSID: &quot; + RememberedNetwork[&quot;SSIDString&quot;].decode(&quot;utf-8&quot;) + u&quot; - BSSID: &quot; + RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;BSSID&quot;] + u&quot; - RSSI: &quot; + str(RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;RSSI&quot;]) + u&quot; - Last connected: &quot; + str(RememberedNetwork[&quot;LastConnected&quot;]) + u&quot; - Security type: &quot; +  RememberedNetwork[&quot;SecurityType&quot;] + u&quot; - Geolocation: &quot; + Geolocation, &quot;INFO&quot;)"><pre class="notranslate">                    <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span>  <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div>
<p dir="auto">Which led to the following bug:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p>
<p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</p>