<p dir="auto">Repro:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1871912/13680508/ab011482-e6ad-11e5-91ae-266d624e7939.png"><img src="https://cloud.githubusercontent.com/assets/1871912/13680508/ab011482-e6ad-11e5-91ae-266d624e7939.png" alt="screenshot from 2016-03-10 10-46-57" style="max-width: 100%;"></a></p>
<p dir="auto">Repro'd on <code class="notranslate">22dd214678739e71bf51fcba7697e98f33ce191d</code> for me. This only repros in C++ mode - C mode correctly ends the string literal in the right place.</p>
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 7</li>
</ul>
<h2 dir="auto">Issue 1:</h2>
<p dir="auto">In the following code (using C++ syntax highlighting), the string literal(s) are not highlighted at all.<br>
This issue is exclusive to C++ syntax highlighting and does not occur with C syntax highlighting.</p>
<h4 dir="auto">Code:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int main()
{
    printf(&quot;%s\n&quot;, &quot;a string&quot;);
}"><pre class="notranslate"><code class="notranslate">int main()
{
    printf("%s\n", "a string");
}
</code></pre></div>
<h4 dir="auto">Result</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p>
<h2 dir="auto">Issue 2:</h2>
<p dir="auto">In custom tmLanguage based colorizers that reference source.c from within rules that begin with certain patterns, the inlined C highlighting is incorrect (this issue also applies to rules using source.c++ but does not occur in rules using source.js).</p>
<h4 dir="auto">Code</h4>
<p dir="auto">(See <a href="https://github.com/SE2Dev/VSCode-BugExample">https://github.com/SE2Dev/VSCode-BugExample</a>)</p>
<h4 dir="auto">Result</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p>