<p>In <a href="https://github.com/geany/geany/pull/957#discussion_r66290649">tagmanager/src/tm_parser.c</a>:</p>
<pre style='color:#555'>> +{
> +  TMParserMap *map = &parser_map[lang];
> +  guint i;
> +
> +  for (i = 0; i < map->size; i++)
> +  {
> +          TMParserMapEntry *entry = &map->entries[i];
> +
> +          if (entry->type == type)
> +                  return entry->kind;
> +  }
> +  return '-';
> +}
> +
> +
> +void tm_parser_verify_type_mappings(void)
</pre>
<blockquote>
<p>And one more thing - I was thinking about moving the TM part into Geany directory […]. Then TM would depend on Geany and it wouldn't be possible to create a Geany-independent binary.</p>
</blockquote>

<p>Should still be possible to have a separate binary for checking, so long as the symbol is public.  We could have either that function public, or a <code>geany_test_main()</code> that calls a bunch of tests and can be run without a GUI.  Or something like <a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a>'s idea of something like a self-test option, <code>--test</code> that would perform tests and exit (with out without GUI, one could probably be emulated somehow with some weird X-faking thingie).</p>

<p>Anyway, can be done later, but really having tests run with the test suite would be great.</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, <a href="https://github.com/geany/geany/pull/957/files/aea7d7845917843dd6b02e5a8dc9031cabc87a86..5d9376ea801a6e6c3ec22748741362a3a2eff7ac#r66290649">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ1xt4fo2lM8QVR1_0Ic_Pz8WzFTyks5qJu6TgaJpZM4Ht-Ad">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ43WXMNAj0HZQf8LjxAO8qJrG_DAks5qJu6TgaJpZM4Ht-Ad.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/957/files/aea7d7845917843dd6b02e5a8dc9031cabc87a86..5d9376ea801a6e6c3ec22748741362a3a2eff7ac#r66290649"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>