[geany/geany] 33b3e7: Improve output of 'import A as B'
Jiří Techet
git-noreply at xxxxx
Mon Mar 14 19:31:10 UTC 2022
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Mon, 14 Mar 2022 19:31:10 UTC
Commit: 33b3e776030d822e0306a71416feb1f3d809c76d
https://github.com/geany/geany/commit/33b3e776030d822e0306a71416feb1f3d809c76d
Log Message:
-----------
Improve output of 'import A as B'
Without this patch the import looks this way
Imports
A
so it misses the B. With this patch, it generates
Imports
A
B
This isn't quite correct, the A shouldn't be there but it is currently
hard to distinguish from other "module" kinds because we don't take
roles into account. But having extra A seems to me better than missing
B.
Modified Paths:
--------------
src/tagmanager/tm_parser.c
tests/ctags/cython_sample2.pyx.tags
Modified: src/tagmanager/tm_parser.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -136,7 +136,7 @@ static TMParserMapEntry map_PYTHON[] = {
{'f', tm_tag_function_t},
{'m', tm_tag_method_t},
{'v', tm_tag_variable_t},
- {'I', tm_tag_undef_t},
+ {'I', tm_tag_externvar_t},
{'i', tm_tag_externvar_t},
/* defined as externvar to get those excluded as forward type in symbols.c:goto_tag()
* so we can jump to the real implementation (if known) instead of to the import statement */
Modified: tests/ctags/cython_sample2.pyx.tags
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,4 @@
# format=tagmanager
my_fun�16�(np.ndarray[dtype=double, ndim=1] x)�0
+np�32768�0
numpy�32768�0
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list