From 9b3aa43f8c6d10ccc6f4f405bb7065da86f93daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= Date: Fri, 24 Feb 2023 13:49:15 +0100 Subject: [PATCH] Map asciidoc level 5 section so it can be shown in the sidebar Fixes #3411. --- src/tagmanager/tm_parser.c | 3 ++- tests/ctags/simple.asciidoc.tags | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tagmanager/tm_parser.c b/src/tagmanager/tm_parser.c index c5cb54034f..9f3be4fcd0 100644 --- a/src/tagmanager/tm_parser.c +++ b/src/tagmanager/tm_parser.c @@ -834,7 +834,7 @@ static TMParserMapEntry map_ASCIIDOC[] = { {'S', tm_tag_macro_t}, //subsection {'t', tm_tag_variable_t}, //subsubsection {'T', tm_tag_struct_t}, //l4subsection - {'u', tm_tag_undef_t}, //l5subsection + {'u', tm_tag_enumerator_t}, //l5subsection {'a', tm_tag_undef_t}, //anchor }; static TMParserMapGroup group_ASCIIDOC[] = { @@ -843,6 +843,7 @@ static TMParserMapGroup group_ASCIIDOC[] = { {N_("Section Level 2"), TM_ICON_NONE, tm_tag_macro_t}, {N_("Section Level 3"), TM_ICON_NONE, tm_tag_variable_t}, {N_("Section Level 4"), TM_ICON_NONE, tm_tag_struct_t}, + {N_("Section Level 5"), TM_ICON_NONE, tm_tag_enumerator_t}, }; // no scope information diff --git a/tests/ctags/simple.asciidoc.tags b/tests/ctags/simple.asciidoc.tags index 4830d8c9b8..5d03d5564e 100644 --- a/tests/ctags/simple.asciidoc.tags +++ b/tests/ctags/simple.asciidoc.tags @@ -10,6 +10,8 @@ Level 4 Section 1.1.1.1.1 Title struct: Level 3 Section 1.1.1.1 Title :: Level 4 Section 1.1.1.1.1 Title Level 4 Section 2.1.1.1.1 TitleÌ2048ÎLevel 3 Section 2.1.1.1 TitleÖ0 struct: Level 3 Section 2.1.1.1 Title :: Level 4 Section 2.1.1.1.1 Title +Level 5 Section 1.1.1.1.1.1 TitleÌ4ÎLevel 4 Section 1.1.1.1.1 TitleÖ0 +enumerator: Level 4 Section 1.1.1.1.1 Title :: Level 5 Section 1.1.1.1.1.1 Title Section 1.1Ì64ÎChapter 1 (Level 0)Ö0 member: Chapter 1 (Level 0) :: Section 1.1 Section 1.2Ì64ÎChapter 1 (Level 0)Ö0