Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Mon, 14 Mar 2022 19:31:10 UTC
Commit: 33b3e776030d822e0306a71416feb1f3d809c76d
https://github.com/geany/geany/commit/33b3e776030d822e0306a71416feb1f3d809c…
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).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Mon, 14 Mar 2022 19:22:47 UTC
Commit: 83c0439cec5616f2fe27e553fdc0d5b2617debe7
https://github.com/geany/geany/commit/83c0439cec5616f2fe27e553fdc0d5b2617de…
Log Message:
-----------
Update mappings in tm_parser.c
The new parser generates 2 tags for import statements like
from A import B
For A tag of the 'i' kind is generated, for B, tag of the kind 'x' is
generated. B includes A in its scope and when we omit generation of
'i', imports are printed in the sidebar with the full scope information
like
Imports
django.views.decorators.csrf.csrf_exempt
django.views.decorators.csrf.csrf_exempt2
django.views.decorators.http.require_POST
When we generate 'i' and map it to something (I used tm_tag_externvar_t
like for the imports themselves, there's nothing in the tag types
we have that would be a good semantic candidate here), the result
in the sidebar is
Imports
django.views.decorators.csrf
csrf_exempt
csrf_exempt2
django.views.decorators.http
require_POST
which is more readable IMO.
Modified Paths:
--------------
src/tagmanager/tm_parser.c
Modified: src/tagmanager/tm_parser.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -136,9 +136,13 @@ 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},
/* 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 */
{'x', tm_tag_externvar_t},
+ {'z', tm_tag_undef_t},
+ {'l', tm_tag_undef_t},
};
/* different parser than tex.c from universal-ctags */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Mon, 14 Mar 2022 19:10:07 UTC
Commit: 7396613f0b40830cf858c5e51dda71590ad06162
https://github.com/geany/geany/commit/7396613f0b40830cf858c5e51dda71590ad06…
Log Message:
-----------
Add R and Verilog to languages reporting context
Modified Paths:
--------------
src/tagmanager/tm_parser.c
Modified: src/tagmanager/tm_parser.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -1114,11 +1114,13 @@ gboolean tm_parser_has_full_scope(TMParserType lang)
case TM_PARSER_PHP:
case TM_PARSER_POWERSHELL:
case TM_PARSER_PYTHON:
+ case TM_PARSER_R:
case TM_PARSER_RUBY:
case TM_PARSER_RUST:
case TM_PARSER_SQL:
case TM_PARSER_TXT2TAGS:
case TM_PARSER_VALA:
+ case TM_PARSER_VERILOG:
case TM_PARSER_ZEPHIR:
return TRUE;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).