[gobject-introspection] sectionparser: Ignore other directives to gtk-doc



commit 348c72ae1a67fee6221445b9bbb491d0c2c5b37d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 28 13:42:32 2013 -0400

    sectionparser: Ignore other directives to gtk-doc
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699856

 giscanner/sectionparser.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index 9637c0e..0b013be 100644
--- a/giscanner/sectionparser.py
+++ b/giscanner/sectionparser.py
@@ -78,6 +78,10 @@ def parse_sections_file(lines):
             current_section.subsections.append(current_subsection)
             continue
 
+        if line.startswith("<") and line.endswith(">"):
+            # Other directive to gtk-doc, not a symbol.
+            continue
+
         current_subsection.symbols.append(line)
 
     return SectionsFile(sections)


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