<p dir="auto">try this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if(true){
    //}
}"><pre class="notranslate"><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
    <span class="pl-c">//}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10367616/7416674/64150b6c-ef61-11e4-886f-b9e082f0c49f.png"><img src="https://cloud.githubusercontent.com/assets/10367616/7416674/64150b6c-ef61-11e4-886f-b9e082f0c49f.png" alt="zaznaczenie_001" style="max-width: 100%;"></a></p>
<p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46850008" data-permission-text="Title is private" data-url="https://github.com/lee-dohm/emacs-flow/issues/3" data-hovercard-type="issue" data-hovercard-url="/lee-dohm/emacs-flow/issues/3/hovercard" href="https://github.com/lee-dohm/emacs-flow/issues/3">lee-dohm/emacs-flow#3</a></p>
<p dir="auto">Repro case can be found (with permission) at: <a href="https://gist.github.com/debtosh/e5b25c7719867ec56382">https://gist.github.com/debtosh/e5b25c7719867ec56382</a></p>
<h2 dir="auto">Repro Steps</h2>
<ol dir="auto">
<li>Open a new file</li>
<li>Paste in the text from the Gist linked above</li>
<li>Set the grammar to C++</li>
<li>Place the cursor after the brace at the end of line 2</li>
</ol>
<p dir="auto"><strong>Expected:</strong> Matches brace on line 33<br>
<strong>Actual:</strong> Does not match</p>
<ol dir="auto">
<li>Place the cursor after the brace <em>in the comment</em> at the end of line 20</li>
</ol>
<p dir="auto"><strong>Expected:</strong> Does not match<br>
<strong>Actual:</strong> Matches brace on line 33</p>
<p dir="auto">If the braces at the end of the comment lines are deleted, all braces match as they would be expected to.</p>