Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sat, 27 Apr 2024 18:54:32 UTC Commit: e00a2684d34446ae7426ee8e00349f8d3595e2fc https://github.com/geany/geany/commit/e00a2684d34446ae7426ee8e00349f8d3595e2...
Log Message: ----------- Map title/subtitle of the rst parser
Without it we might not get proper hierarchy in the sidebar because of missing parent tags.
Modified Paths: -------------- src/tagmanager/tm_parser.c tests/ctags/simple.rst tests/ctags/simple.rst.tags
Modified: src/tagmanager/tm_parser.c 6 lines changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -590,8 +590,8 @@ static TMParserMapGroup group_HAXE[] = { };
static TMParserMapEntry map_REST[] = { - {'H', tm_tag_undef_t}, // title - {'h', tm_tag_undef_t}, // subtitle + {'H', tm_tag_enumerator_t}, // title + {'h', tm_tag_field_t}, // subtitle {'c', tm_tag_namespace_t}, // chapter {'s', tm_tag_member_t}, // section {'S', tm_tag_macro_t}, // subsection @@ -601,6 +601,8 @@ static TMParserMapEntry map_REST[] = { {'d', tm_tag_undef_t}, // substdef }; static TMParserMapGroup group_REST[] = { + {N_("Title"), TM_ICON_NONE, tm_tag_enumerator_t}, + {N_("Subtitle"), TM_ICON_NONE, tm_tag_field_t}, {N_("Chapter"), TM_ICON_NONE, tm_tag_namespace_t}, {N_("Section"), TM_ICON_NONE, tm_tag_member_t}, {N_("Subsection"), TM_ICON_NONE, tm_tag_macro_t},
Modified: tests/ctags/simple.rst 8 lines changed, 8 insertions(+), 0 deletions(-) =================================================================== @@ -1,3 +1,11 @@ +======================================= +Title +======================================= + +--------------------------------------- +Subtitle +--------------------------------------- + Chapter 1 =========
Modified: tests/ctags/simple.rst.tags 12 lines changed, 8 insertions(+), 4 deletions(-) =================================================================== @@ -1,7 +1,7 @@ -Chapter 1�256�0 -namespace: Chapter 1 -Chapter 2�256�0 -namespace: Chapter 2 +Chapter 1�256�Subtitle�0 +namespace: Subtitle :: Chapter 1 +Chapter 2�256�Subtitle�0 +namespace: Subtitle :: Chapter 2 Section 1.1�64�Chapter 1�0 member: Chapter 1 :: Section 1.1 Section 1.2�64�Chapter 1�0 @@ -14,3 +14,7 @@ Subsection 1.1.1 macro: Section 1.1 :: Subsection 1.1.1 Subsubsection 1.1.1.1�16384�Subsection 1.1.1�0 variable: Subsection 1.1.1 :: Subsubsection 1.1.1.1 +Subtitle�8�Title�0 +field: Title :: Subtitle +Title�4�0 +enumerator: Title
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).