diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-07-07 14:46:51 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-07-07 14:46:51 +0200 |
commit | cd2612904a7566c3886b93fff61c30c934a49c17 (patch) | |
tree | abde307d3fad466aeb88803a6a2df99a1ce817fd /tools | |
parent | 5cfbe92b11795ec4c235626e3c606de89c556f0f (diff) | |
download | glibmm-cd2612904a7566c3886b93fff61c30c934a49c17.tar.gz |
gmmproc, DocsParser.pm: Improve the handling of gi-docgen syntax, part 3
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pm/DocsParser.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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. |