From 95b18d1db77119c575462006c4d58ba7a47c8732 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 27 Mar 2013 17:46:03 -0400 Subject: sectionparser: Add support for https://bugzilla.gnome.org/show_bug.cgi?id=699856 --- giscanner/sectionparser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py index 85ef3a2e..ee023f31 100644 --- a/giscanner/sectionparser.py +++ b/giscanner/sectionparser.py @@ -27,6 +27,7 @@ class Section(object): def __init__(self): self.file = None self.title = None + self.includes = None self.main_subsection = Subsection(None) self.subsections = [] @@ -66,6 +67,11 @@ def parse_sections_file(lines): current_section.title = match.groupdict['contents'] continue + match = re.match(r"(?P.*)", line) + if match: + current_section.includes = match.groupdict['contents'] + continue + match = re.match(r".*))?>", line) if match: current_subsection = Subsection(match.groupdict.get('name', None)) -- cgit v1.2.1