[gi-docgen/ebassi/issue-80] Remove gtk-doc function matching




commit 50c71788f2c7db02fa6c3036fe8c04fac7621439
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue May 18 16:11:10 2021 +0100

    Remove gtk-doc function matching
    
    There are far, far too many false positives.
    
    Fixes: #80

 gidocgen/mdext.py | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/gidocgen/mdext.py b/gidocgen/mdext.py
index 0299d79..7ee1761 100644
--- a/gidocgen/mdext.py
+++ b/gidocgen/mdext.py
@@ -17,8 +17,6 @@ ARG_SIGIL_RE = re.compile(r"(^|\W)@([A-Za-z0-9_]+)\b")
 
 CONST_SIGIL_RE = re.compile(r"(^|\W)%([A-Z0-9_]+)\b")
 
-FUNC_POSTFIX_RE = re.compile(r"([A-Za-z0-9_]+)\(\)")
-
 
 class GtkDocPreprocessor(Preprocessor):
     """Remove all gtk-doc sigils from the Markdown text"""
@@ -44,9 +42,6 @@ class GtkDocPreprocessor(Preprocessor):
             # Argument sygil
             new_line = re.sub(ARG_SIGIL_RE, r"\g<1>`\g<2>`", new_line)
 
-            # Function postfix
-            new_line = re.sub(FUNC_POSTFIX_RE, r"`\g<1>()`", new_line)
-
             new_lines.append(new_line)
         return new_lines
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]