Perform scope autocompletion based on function return types
commite0122592d95f8cd5347729c3d15c05c40094edcd
authorJiří Techet <techet@gmail.com>
Sat, 23 May 2015 13:56:18 +0000 (23 15:56 +0200)
committerJiří Techet <techet@gmail.com>
Sun, 10 Jan 2016 11:36:08 +0000 (10 12:36 +0100)
tree425210d571af814aeb97facf9ad1c350bf3d1074
parent4bc5f4a7e482d577cdbff9badf422479cb19714b
Perform scope autocompletion based on function return types

We just need to skip the (...) and perform autocompletion as before.

Shift pos by 1 in the whole function so we don't have to look 2 characters
back (makes the function easier to read).

Functions contain pointers in their return values - remove them before
searching for the type.

Also restrict the searched variable/function/type tags a bit only to
types which make sense for the search.
src/editor.c
tagmanager/src/tm_workspace.c
tagmanager/src/tm_workspace.h