[glibmm] gmmproc, DocsParser.pm: Improve the handling of gi-docgen syntax, part 3
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc, DocsParser.pm: Improve the handling of gi-docgen syntax, part 3
- Date: Thu, 7 Jul 2022 13:03:02 +0000 (UTC)
commit cd2612904a7566c3886b93fff61c30c934a49c17
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Jul 7 14:46:51 2022 +0200
gmmproc, DocsParser.pm: Improve the handling of gi-docgen syntax, part 3
tools/pm/DocsParser.pm | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm
index 7c14a2b5..f65c369e 100644
--- a/tools/pm/DocsParser.pm
+++ b/tools/pm/DocsParser.pm
@@ -655,6 +655,9 @@ sub remove_c_memory_handling_info($)
# Don't modify the text, if $mem_funcs is part of example code.
# remove_c_memory_handling_info() is called before remove_example_code().
return if ($$text =~
m"(?:<informalexample>|<programlisting>|\|\[).*?$mem_funcs.*?(?:</informalexample>|</programlisting>|]\|)"s);
+ # gi-docgen syntax.
+ # remove_c_memory_handling_info() is called before add_m4_quotes().
+ return if ($$text =~ m"\`\`\`[cC].*?$mem_funcs.*?\`\`\`"s);
# First try to remove the sentence containing $mem_funcs.
# For simplicity, assume that a sentence is any string ending with a period.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]