Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 16 Oct 2023 20:56:07 UTC Commit: 449a55ad8c5e5da3ac8baebad7126ebf9d3314a7 https://github.com/geany/geany/commit/449a55ad8c5e5da3ac8baebad7126ebf9d3314...
Log Message: ----------- Fix blooper leading to incorrect variable formatting
188038a06a1050308fd7621f11147883d7e5b8fc extended the formatting options, but a blooper made it effectively ignore the language-specific rules, always using the default one. This affects formatting for Go, Pascal and Python, as well as introducing memory leaks for those.
Modified Paths: -------------- src/tagmanager/tm_parser.c
Modified: src/tagmanager/tm_parser.c 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -1535,11 +1535,14 @@ gchar *tm_parser_format_variable(TMParserType lang, const gchar *name, const gch { case TM_PARSER_GO: ret = g_strconcat(name_full, " ", type, NULL); + break; case TM_PARSER_PASCAL: case TM_PARSER_PYTHON: ret = g_strconcat(name_full, ": ", type, NULL); + break; default: ret = g_strconcat(type, " ", name_full, NULL); + break; }
g_free(name_full);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).