You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems like the jumptodef has a lot of edge cases, universal ctags supports the +n field, which adds the line at which the tag appears, maybe using this would fix all these issues and make the code smaller?
The text was updated successfully, but these errors were encountered:
I'll have to see what we could do, but in theory if you have a cursor position, you can ask vim what sort of syntax highlight symbol it has associated to that position. This is what I've used before for comment detection and I've a simplified syntax file as part of the plugin for this.
I'm not against adding support for new ctag features, but the part in the patch is just reading buffers, need to take a closer look at this.
Thank you once again for the awesomely detailed report!
see https://github.com/dkjii-gg/phpcomplete-test-2, try going to \t\test(), it brings to \f\test because it falls back to vim default tag search
The reason it does that is that when it looks for the match in the file (to get the line), it doesn't verify that it's not part of a comment
Here's a patch that fixes this (kinda), but it does not handle a lot of valid use-cases (and doesn't even exclude multiline comments)
patch.txt
seems like the jumptodef has a lot of edge cases, universal ctags supports the +n field, which adds the line at which the tag appears, maybe using this would fix all these issues and make the code smaller?
The text was updated successfully, but these errors were encountered: