<p><a href="https://github.com/b4n" class="user-mention">@b4n</a> Yep, I think it's really that simple. I'd just do one thing - rename the strip_scope() to something like strip_type() and move also the </p>

<pre><code>g_strdelimit(tag_type, "*^", ' ');
</code></pre>

<p>line there so it gets rid of pointers in all cases too. I'd also would move the tag->var_type == NULL check inside the strip_type() function so the caller doesn't have to care what var_type contains. Is it OK if I modify it this way?</p>

<p>In the future it would be good to extend the strip_type() function to remove stuff between < and > (stripping templates) and also between <a href="stripping%20arrays"> and </a>. But I'll do this separately from this patchset.</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/862#issuecomment-175078508">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwKqs1E1QXb87M9LUxn6U13PYFugks5pd4hMgaJpZM4HB6zU.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/862#issuecomment-175078508"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>