<p>Another thing syntax highlighters mistake about rust is its support for nested block comments.</p>

<p>For example take this code:</p>

<div class="highlight highlight-source-rust"><pre><span class="pl-c">/*</span>
<span class="pl-c"><span class="pl-c">/*</span></span>
<span class="pl-c"><span class="pl-c">inner</span></span>
<span class="pl-c"><span class="pl-c">*/</span></span>
<span class="pl-c">interesting</span>
<span class="pl-c">*/</span></pre></div>

<p><code>interesting</code> here is commented out, because its still "inside" the outer comment boundary.</p>

<p>Same code rendered as C++:</p>

<div class="highlight highlight-source-c++"><pre><span class="pl-c">/*</span>
<span class="pl-c">/*</span>
<span class="pl-c">inner</span>
<span class="pl-c">*/</span>
interesting
<span class="pl-ii">*/</span></pre></div>

<p><code>interesting</code> here gets read like normal code. C++ parses, like C, from the first occurence of <code>/*</code> to the first occurence of <code>*/</code>.</p>

<p>I wonder, can geany cope with this? I don't use geany, so I can't test. I just know that the text editor I use (kate) has that precise problem.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/595#issuecomment-185159810">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3DqpON20xq2y11i81AgFXoQSUoTks5plE9xgaJpZM4FjdAv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/595#issuecomment-185159810"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>