<p dir="auto">There is various language-specific code related to tag manager which is scattered across Geany codebase. First, it makes such code hard to maintain, second, it makes it hard to discover for people adding support for a new parser to Geany. This code includes:</p>
<ol dir="auto">
<li>Formatting of functions for calltips and popups for sidebar (also for variables). This is language-specific where e.g. function return type can be in front of function for C but behind function for go.</li>
<li>Displaying of calltips for object constructors based on certain method name (<strong>init</strong>() arguments after typing <code>MyClass(</code> for Python) - there were actually two different implementations of this feature, one for Python, one for D.</li>
<li>Code detecting whether scope autocompletion should be triggered - the characters triggering it are specific to used languages.</li>
</ol>
<p dir="auto">Since <code>tm_parser.c</code> already contains language-specific mappings from parsers, it seems to be a good home for this kind of code.</p>
<p dir="auto">The only remaining language-specific tag manager related code is the mappings  of tags to the symbol tree in <code>symbols.c</code> which I'd like to move to <code>tm_parser.c</code> once the various parser pull requests are merged (not to introduce merge conflicts).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/3060'>https://github.com/geany/geany/pull/3060</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/63e22d343489387dda3cf11959a92b7faa6056d2" class="commit-link">63e22d3</a>  Move function/variable formatting into tm_parser</li>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/6cef665d36fbadb4af700ea37134b0455dd3290a" class="commit-link">6cef665</a>  Handle calltips of Python constructors like D constructors</li>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/eb5aff941c992766ef302e2333360c42747a1ea1" class="commit-link">eb5aff9</a>  Move language-specific part of constructor calltip lookup to tm_parser</li>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/3a0e4a4fd567bbc74dc88b9e2f6d39690efdff4a" class="commit-link">3a0e4a4</a>  Move language-specific parts of whether to trigger scope autocompletion to tm_parser</li>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/2ed3d5c3c26150854bfc55b4d22a1005e55e1c0f" class="commit-link">2ed3d5c</a>  Remove invalid python-specific code</li>
  <li><a href="https://github.com/geany/geany/pull/3060/commits/b3e99ce1edacf6ec3e4b1e50547b729bb549efed" class="commit-link">b3e99ce</a>  Display python type annotations correctly formatted</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/3060/files">9 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-3fe5ce523684a7fca311fab0d09542552fbe3a28ddaa20ebc5a65c1904bc5e02">src/editor.c</a>
    (131)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-250599d8188c89a855e09814adc59505f6e5d31cc234a9e085f706f3b314644b">src/editor.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-57618d7b5e160a906f23885f8c59d06d88a517be568cbd428366e24b58c13fe5">src/symbols.c</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-d36eb041e0ffe3485e8ed99a19a597a95a368ffa898348ac95867b86b6e04cd6">src/tagmanager/tm_ctags.c</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-52c3ba1a920ce03ae524e393cf4d0ff582b13d9eafef29393f9841c19adf31f8">src/tagmanager/tm_parser.c</a>
    (119)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-bf5ef327799b72933ceecfaa934a3b90ba5e983577974d2dc3a283fc4f6e8d60">src/tagmanager/tm_parser.h</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-a3e9f67faad610524d016f45a15a3ea0a19025bc90b2754ed7d47baa505e4c55">tests/ctags/cython_sample.pyx.tags</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-fdb9d9a182b1e0c01dda943058c1552a2c709743445c85c5e010481a0bb2d50b">tests/ctags/py_constructor_arglist.py.tags</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3060/files#diff-46886995acaf5b91604a3895e9c66f842fbdde364fbc73eecd37c2af538bbbfd">tests/ctags/simple.py.tags</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/3060.patch'>https://github.com/geany/geany/pull/3060.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/3060.diff'>https://github.com/geany/geany/pull/3060.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3060">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4JNBHXRZ4BAAOMVOLURZQETANCNFSM5KMMWKPQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ73J63QN4WP7BEBA4DURZQETA5CNFSM5KMMWKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QE7ZKQQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3060</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3060",
"url": "https://github.com/geany/geany/pull/3060",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>