<blockquote>
<p>Does highlightnig methods have the same story or it is valid request?</p>
</blockquote>

<p><a href="https://github.com/Yanpas" class="user-mention">@Yanpas</a> It would have to be a request to Scintilla project. The Python lexer can do this, but it might not be as easy for C++ lexer as Python uses <code>def</code> to define functions, where C++ is a lot harder. One vexing example, which I don't think can be determined without proper parsing of the code, is like:</p>

<div class="highlight highlight-source-c++"><pre><span class="pl-k">static</span> vartype <span class="pl-en">varname</span>(initval);
<span class="pl-k">static</span> returntype <span class="pl-en">funcname</span>(argtype);</pre></div>

<p>I'm sure there's many more examples to make distinguishing simple enough for a dumb lexer.</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/issues/876#issuecomment-173608864">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzH4d2WdlM7McUmcAJpnjSrYafUWks5pcPKpgaJpZM4HI566.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/issues/876#issuecomment-173608864"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>