<p>I was not aware of the ctags project. But their <a href="https://github.com/universal-ctags/ctags/blob/master/parsers/tex.c">tex file</a> does not seem to have anything for macros, and is considerably different from the ctags/latex.c file here. So I don't see how I could submit theses changes there, and I also don't see how it would help Geany.</p>

<p>One way of making this functionality more generic would be to use the lexer to filter which symbols can be used for autocompletion. So if the lexer can tell whether the current word is a macro or not, and if the known symbols are properly typed, the LaTeX specific code could go away. But I don't know if this could break autocompletion for other languages.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/1011#issuecomment-215140022">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3_QakSADXkfmS2X_S5fC2yED62-ks5p749cgaJpZM4IQ2OS.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/1011#issuecomment-215140022"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>