<p>In <a href="https://github.com/geany/geany/pull/1146#discussion_r71932027">src/editor.c</a>:</p>
<pre style='color:#555'>>  
>    g_return_val_if_fail(editor, FALSE);
>  
> -  tags = tm_workspace_find_prefix(root, ft->lang, editor_prefs.autocompletion_max_entries);
> +  /* Get keywords and create a dummy TMTag array from them. These tags are
> +   * then also searched when searching workspace */
> +  keywords = highlighting_get_keywords(ft->id);
> +  keyword_array = g_ptr_array_new_full(100, (GDestroyNotify)tm_tag_unref);
> +  foreach_strv(keyword, keywords)
> +  {
> +          if (**keyword != '\0')
> +          {
> +                  TMTag *tag = tm_tag_new();
> +
> +                  tag->name = g_strdup(*keyword);
> +                  tag->lang = ft->lang;
</pre>
<p>This is a non-scope search (scope search doesn't make much sense for keywords, they in general don't appear after "." at least for the languages I know) and type isn't used anywhere in tm_workspace_find_prefix().</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/1146/files/1e74c11aca41274d690d8da0b6e59b1247fbb222#r71932027">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ4aURC5jeY49Qv2a7KdJq4Hxtl5fks5qYRingaJpZM4JS-lH">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-3_8eTYM7PG6ur6l2Xr3gIn0kjYks5qYRingaJpZM4JS-lH.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/1146/files/1e74c11aca41274d690d8da0b6e59b1247fbb222#r71932027"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>