<p dir="auto">Could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123225492" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1520" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1520/hovercard" href="https://github.com/microsoft/vscode/issues/1520">#1520</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123792357" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1634" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1634/hovercard" href="https://github.com/microsoft/vscode/issues/1634">#1634</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132380768" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2830" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2830/hovercard" href="https://github.com/microsoft/vscode/issues/2830">#2830</a></p>
<ul dir="auto">
<li>VSCode Version: 1.1.0</li>
<li>OS Version: Windows 8.1 Pro</li>
</ul>
<p dir="auto">Steps to reproduce:</p>
<ol dir="auto">
<li>Create new/edit existing SQL file.</li>
<li>Enter a string with a backslash as the last character before the terminating single quote.</li>
<li>Syntax highlighting thinks the terminating quote is escaped.</li>
</ol>
<p dir="auto">SSMS does not behave like this, and will parse the same script without this issue.</p>
<p dir="auto">Also reproduces when starting VSCode with the --disable-extensions command line argument.</p>
<p dir="auto">Sample screenshot:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/460028/15210098/96e043b4-182c-11e6-9790-c10b2d5e4d06.png"><img src="https://cloud.githubusercontent.com/assets/460028/15210098/96e043b4-182c-11e6-9790-c10b2d5e4d06.png" alt="image" style="max-width: 100%;"></a><br>
The select statement on line 4 shouldn't be that colour, since it is not part of the string.</p>
<p dir="auto">The same snippet in SSMS:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/460028/15210149/d6180012-182c-11e6-9dba-c1144d6c1fb4.png"><img src="https://cloud.githubusercontent.com/assets/460028/15210149/d6180012-182c-11e6-9dba-c1144d6c1fb4.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 7 Professional</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">I have a \ character defined as a string in an update query. The Syntax highlighting is incorrectly escaping the following ' and displaying the rest of the script as a string. I am using UTF-8 Encoding with SQL as the language. Below two screenshots:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9720471/14493462/ded13ba0-0185-11e6-982e-6160b8edba5c.jpg"><img src="https://cloud.githubusercontent.com/assets/9720471/14493462/ded13ba0-0185-11e6-982e-6160b8edba5c.jpg" alt="error" style="max-width: 100%;"></a></p>
<p dir="auto">This is the same piece of script in SSMS.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9720471/14493535/33fcb442-0186-11e6-8598-e975e1f3074f.jpg"><img src="https://cloud.githubusercontent.com/assets/9720471/14493535/33fcb442-0186-11e6-8598-e975e1f3074f.jpg" alt="ssms" style="max-width: 100%;"></a></p>