Branch: refs/heads/master Author: Javier Mora cousteaulecommandant@gmail.com Committer: Javier Mora cousteaulecommandant@gmail.com Date: Sun, 24 Nov 2024 22:42:56 UTC Commit: dd9f5151355f452a35d404465d34ac54e6d11b0e https://github.com/geany/geany/commit/dd9f5151355f452a35d404465d34ac54e6d11b...
Log Message: ----------- Change icon of SystemVerilog struct/enum objects
Unlike in the C parser, "struct" in SystemVerilog refers to declarations of struct/union *objects*, not definitions of struct/union "types". The same goes for enum declarations.
Unlike in C, there is no way to define a "struct type" (or union/enum) except by using a typedef. Therefore, all "structure definitions" use typedef; otherwise they're simply declaring struct objects.
This puts the ctags "struct" and "enum" in the same category as "net" or "register"; the tm_parser should reflect this.
- Put Enums on the same tm_parser group as Structs and Unions, separate from Typedefs. - Change the icon for the Structs/Unions/Enums to "three gray boxes" (OTHER), so that it resembles an "aggregate of multiple signals" or "a grayed-out (anonymous/signal-ified) type".
Modified Paths: -------------- src/tagmanager/tm_parser.c
Modified: src/tagmanager/tm_parser.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -799,8 +799,8 @@ static TMParserMapGroup group_VERILOG[] = { {N_("Interfaces"), TM_ICON_STRUCT, tm_tag_interface_t | tm_tag_union_t}, {N_("Package"), TM_ICON_NAMESPACE, tm_tag_package_t}, {N_("Members"), TM_ICON_MEMBER, tm_tag_member_t}, - {N_("Structs"), TM_ICON_STRUCT, tm_tag_struct_t}, - {N_("Typedefs / Enums"), TM_ICON_STRUCT, tm_tag_typedef_t | tm_tag_enum_t}, + {N_("Structs / Unions / Enums"), TM_ICON_OTHER, tm_tag_struct_t | tm_tag_enum_t}, + {N_("Typedefs"), TM_ICON_STRUCT, tm_tag_typedef_t}, };
static TMParserMapEntry map_SYSVERILOG[] = {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).