Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 13 Apr 2024 22:37:15 UTC Commit: c120dcb368c55157ca2051a917287ae539498f25 https://github.com/geany/geany/commit/c120dcb368c55157ca2051a917287ae539498f...
Log Message: ----------- Erlang: display module node in the symbols tree
Properly display the module node itself in the symbols tree so it can be the module content's parent instead of having each content node showing the module name as prefix.
Fixes #2650.
Modified Paths: -------------- src/tagmanager/tm_parser.c tests/ctags/maze.erl.tags tests/ctags/test.erl.tags
Modified: src/tagmanager/tm_parser.c 3 lines changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -344,7 +344,7 @@ static TMParserMapGroup group_DOCBOOK[] = { static TMParserMapEntry map_ERLANG[] = { {'d', tm_tag_macro_t}, // macro {'f', tm_tag_function_t}, // function - {'m', tm_tag_undef_t}, // module + {'m', tm_tag_namespace_t}, // module {'r', tm_tag_struct_t}, // record {'t', tm_tag_typedef_t}, // type }; @@ -353,6 +353,7 @@ static TMParserMapGroup group_ERLANG[] = { {N_("Structs"), TM_ICON_STRUCT, tm_tag_struct_t}, {N_("Typedefs / Enums"), TM_ICON_STRUCT, tm_tag_typedef_t}, {N_("Macros"), TM_ICON_MACRO, tm_tag_macro_t}, + {N_("Module"), TM_ICON_NAMESPACE, tm_tag_namespace_t}, };
// no scope information
Modified: tests/ctags/maze.erl.tags 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -2,6 +2,8 @@ build function: maze :: build generate�16�maze�0 function: maze :: generate +maze�256�0 +namespace: maze pick�16�maze�0 function: maze :: pick scramble�16�maze�0
Modified: tests/ctags/test.erl.tags 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -6,5 +6,7 @@ function1 function: test :: function1 record1�2048�0 struct: record1 +test�256�0 +namespace: test type1�4096�0 typedef: type1
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).