Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 26 May 2024 20:31:24 UTC Commit: 834d81ce2b8ddcc495f70eb65ed2809689a7b47d https://github.com/geany/geany/commit/834d81ce2b8ddcc495f70eb65ed2809689a7b4...
Log Message: ----------- Map powershell enumlabel to tm_tag_enumerator_t
Modified Paths: -------------- src/tagmanager/tm_parser.c tests/ctags/enum.ps1.tags
Modified: src/tagmanager/tm_parser.c 14 lines changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -946,18 +946,18 @@ static TMParserMapGroup group_JSON[] = { #define group_ZEPHIR group_PHP
static TMParserMapEntry map_POWERSHELL[] = { - {'f', tm_tag_function_t}, // function - {'v', tm_tag_variable_t}, // variable - {'c', tm_tag_class_t}, // class - {'i', tm_tag_function_t}, // filter - {'g', tm_tag_enum_t}, // enum - {'e', tm_tag_undef_t}, // enumlabel + {'f', tm_tag_function_t}, // function + {'v', tm_tag_variable_t}, // variable + {'c', tm_tag_class_t}, // class + {'i', tm_tag_function_t}, // filter + {'g', tm_tag_enum_t}, // enum + {'e', tm_tag_enumerator_t}, // enumlabel }; static TMParserMapGroup group_POWERSHELL[] = { {N_("Classes"), TM_ICON_CLASS, tm_tag_class_t}, {N_("Functions"), TM_ICON_METHOD, tm_tag_function_t}, {N_("Enums"), TM_ICON_STRUCT, tm_tag_enum_t}, - {N_("Variables"), TM_ICON_VAR, tm_tag_variable_t}, + {N_("Variables"), TM_ICON_VAR, tm_tag_variable_t | tm_tag_enumerator_t}, };
static TMParserMapEntry map_JULIA[] = {
Modified: tests/ctags/enum.ps1.tags 16 lines changed, 16 insertions(+), 0 deletions(-) =================================================================== @@ -6,3 +6,19 @@ EnumName3 enum: EnumName3 EnumName4�2�0 enum: EnumName4 +Label11�4�EnumName1�0 +enumerator: EnumName1 :: Label11 +Label12�4�EnumName1�0 +enumerator: EnumName1 :: Label12 +Label21�4�EnumName2�0 +enumerator: EnumName2 :: Label21 +Label22�4�EnumName2�0 +enumerator: EnumName2 :: Label22 +Label31�4�EnumName3�0 +enumerator: EnumName3 :: Label31 +Label32�4�EnumName3�0 +enumerator: EnumName3 :: Label32 +Label41�4�EnumName4�0 +enumerator: EnumName4 :: Label41 +Label42�4�EnumName4�0 +enumerator: EnumName4 :: Label42
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).