Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 23 Jan 2022 16:44:14 UTC Commit: 7ccf2bba6ceb8de2aefaa1c44c8eeebe996702f8 https://github.com/geany/geany/commit/7ccf2bba6ceb8de2aefaa1c44c8eeebe996702...
Log Message: ----------- Rename tm_parser_has_full_context() to tm_parser_has_full_scope()
Modified Paths: -------------- HACKING src/symbols.c src/tagmanager/tm_parser.c src/tagmanager/tm_parser.h
Modified: HACKING 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -676,7 +676,7 @@ MAP_ENTRY(FOO) to parser_map. (You may want to make the symbols.c change before doing this).
In src/tagmanager/tm_parser.c: -Update tm_parser_scope_separator() and tm_parser_has_full_context() to +Update tm_parser_scope_separator() and tm_parser_has_full_scope() to handle the new parser if applicable, by adding a TM_PARSER_FOO case entry.
In filetypes.c, init_builtin_filetypes():
Modified: src/symbols.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -1216,7 +1216,7 @@ static void update_parents_table(GHashTable *table, const TMTag *tag, const GtkT /* simple case, just use the tag name */ name = tag->name; } - else if (! tm_parser_has_full_context(tag->lang)) + else if (! tm_parser_has_full_scope(tag->lang)) { /* if the parser doesn't use fully qualified scope, use the name alone but * prevent Foo::Foo from making parent = child */ @@ -1398,7 +1398,7 @@ static void update_tree_tags(GeanyDocument *doc, GList **tags) /* Build hash tables holding tags and parents */ /* parent table is GHashTable<tag_name, GTree<line_num, GtkTreeIter>> * where tag_name might be a fully qualified name (with scope) if the language - * parser reports scope properly (see tm_parser_has_full_context()). */ + * parser reports scope properly (see tm_parser_has_full_scope()). */ parents_table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, parents_table_value_free); /* tags table is another representation of the @tags list, * GHashTable<TMTag, GTree<line_num, GList<GList<TMTag>>>> */
Modified: src/tagmanager/tm_parser.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -1030,7 +1030,7 @@ const gchar *tm_parser_scope_separator(TMParserType lang) }
-gboolean tm_parser_has_full_context(TMParserType lang) +gboolean tm_parser_has_full_scope(TMParserType lang) { switch (lang) {
Modified: src/tagmanager/tm_parser.h 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -141,7 +141,7 @@ gchar *tm_parser_format_function(TMParserType lang, const gchar *fname, const gc
const gchar *tm_parser_scope_separator(TMParserType lang);
-gboolean tm_parser_has_full_context(TMParserType lang); +gboolean tm_parser_has_full_scope(TMParserType lang);
gboolean tm_parser_langs_compatible(TMParserType lang, TMParserType other);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).