[Github-comments] [geany/geany] Improve handling of anonymous tags (PR #3059)

Jiří Techet notifications at xxxxx
Mon Dec 20 15:35:14 UTC 2021


@techee commented on this pull request.



> @@ -818,6 +818,28 @@ void tm_parser_verify_type_mappings(void)
 }
 
 
+/* determine anonymous tags from tag names only when corresponding
+ * ctags information is not available */
+gboolean tm_parser_is_anon_name(TMParserType lang, gchar *name)
+{
+	guint i;
+	char dummy;
+
+	if (lang == TM_PARSER_C || lang == TM_PARSER_CPP)
+	{
+		return sscanf(name, "anon_%*[a-z]_%u%c", &i, &dummy) == 1 ||

This code actually was there before the new cxx parser was merged. In the cxx pull request I changed it to `__anon` detection only but then thought there might be some old tag files around so better to use the previous checks too (plus now we get anonymous tags in this format again). Since it worked before, I guess it's OK.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3059#discussion_r772462845
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3059/review/836529017 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211220/2fd6e550/attachment.htm>


More information about the Github-comments mailing list