<p>The only indication of what syntactic entity a character belongs to is the highlighting style.  Highlighting is done Scintilla lexers.  The set of syntax entities is filetype dependent (keywords, strings, comments, etc).  A dialog that provided a checklist of entities to select would have to be different for each filetype and synchronised with Scintilla each release (adding to the workload of incorporating a Scintilla release).</p>

<p>It is therefore unlikely to be implemented.</p>

<p>Instead you can simply be more specific in your search terms for replacement, eg replace $y with $x instead of just y with x.  This will also stop you changing $why to $whx or the comment <code>// why yell you yowee</code> to <code>// whx xell xou xowee</code> both of which which the syntax check would still allow.</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/834#issuecomment-166033125">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0_fj09wepiHlGloLBWh1g6twrGsks5pRd1bgaJpZM4G4udv.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/834#issuecomment-166033125"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>