Update goto symbol definitions to take into account local variables
commit13bdb37cf7496a27b0b77c9893839c0fc3aba186
authorJiří Techet <techet@gmail.com>
Sun, 17 Apr 2022 22:38:12 +0000 (18 00:38 +0200)
committerThomas Martitz <thomas.martitz@mailbox.org>
Sat, 27 Aug 2022 22:44:12 +0000 (28 00:44 +0200)
treea894a4b6aaad5b953ca5100057a00e33285a8432
parent25f150931e376d57654fb1df59b892c48af80e5a
Update goto symbol definitions to take into account local variables

We only want to use local variables within the current function for
the goto. This means we want to filter out local variable tags that:
1. Are from a different file
2. Are declared later in the file than where the current cursor is
3. Have different scope than the current function scope

Fundamentally the same requirements as for (non-scope) autocompletion.
src/symbols.c