From 79295ce727e9b7c667b616516655a8c61566e181 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Techet?= Date: Thu, 13 Jan 2022 16:03:28 +0100 Subject: [PATCH] Use tm_parser_scope_separator() instead of symbols_get_context_separator() symbols_get_context_separator() uses filetype ID as its argument and tm_parser_scope_separator() uses parser ID as its argument and those are easy to confuse. Use just one of them in Geany code to avoid errors. --- src/symbols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/symbols.c b/src/symbols.c index 8f7674c9d..5eefc542a 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -960,7 +960,7 @@ static const gchar *get_symbol_name(GeanyDocument *doc, const TMTag *tag, gboole if (!found_parent && scope && strpbrk(scope, GEANY_WORDCHARS) == scope) { - const gchar *sep = symbols_get_context_separator(doc->file_type->id); + const gchar *sep = tm_parser_scope_separator(tag->lang); g_string_append(buffer, scope); g_string_append(buffer, sep); @@ -2451,7 +2451,7 @@ static gint get_current_tag_name(GeanyDocument *doc, gchar **tagname, TMTagType { if (tag->scope) *tagname = g_strconcat(tag->scope, - symbols_get_context_separator(doc->file_type->id), tag->name, NULL); + tm_parser_scope_separator(tag->lang), tag->name, NULL); else *tagname = g_strdup(tag->name); -- 2.11.4.GIT