Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Sat, 12 Aug 2023 20:48:12 UTC Commit: 3381706a6b7a16bc994391e7eeb3bcfa83506eb0 https://github.com/geany/geany/commit/3381706a6b7a16bc994391e7eeb3bcfa83506e...
Log Message: ----------- Merge pull request #3460 from techee/autoit_mapping
autoit: use local/global variable tags
Modified Paths: -------------- ctags/parsers/autoit.c src/tagmanager/tm_parser.c tests/ctags/simple.au3.tags
Modified: ctags/parsers/autoit.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -283,7 +283,7 @@ static void findAutoItTags (void) skipSpaces (&p); if (*p == '$') { - vStringPut (name, (int) *p++); + p++; while (isIdentChar ((int) *p)) { vStringPut (name, (int) *p);
Modified: src/tagmanager/tm_parser.c 5 lines changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -1083,13 +1083,14 @@ static TMParserMapGroup group_BATCH[] = { static TMParserMapEntry map_AUTOIT[] = { {'f', tm_tag_function_t}, {'r', tm_tag_other_t}, - {'g', tm_tag_undef_t}, - {'l', tm_tag_undef_t}, + {'g', tm_tag_variable_t}, + {'l', tm_tag_variable_t}, {'S', tm_tag_undef_t}, }; static TMParserMapGroup group_AUTOIT[] = { {N_("Functions"), TM_ICON_METHOD, tm_tag_function_t}, {N_("Regions"), TM_ICON_OTHER, tm_tag_other_t}, + {N_("Variables"), TM_ICON_VAR, tm_tag_variable_t}, };
typedef struct
Modified: tests/ctags/simple.au3.tags 6 lines changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -6,3 +6,9 @@ MyDouble0 function: All functions :: MyDouble0($iValue) MyDouble1�16�($iValue)�All functions�0 function: All functions :: MyDouble1($iValue) +iDoubled�16384�0 +variable: iDoubled +iMagic�16384�0 +variable: iMagic +iNumber�16384�0 +variable: iNumber
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).