[gobject-introspection/wip/docs: 15/16] sectionparser: Ignore other directives to gtk-doc
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/docs: 15/16] sectionparser: Ignore other directives to gtk-doc
- Date: Thu, 4 Apr 2013 19:45:43 +0000 (UTC)
commit c7e9a58b3596af4fe16111be5c0c7151833a74fc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Mar 28 13:42:32 2013 -0400
sectionparser: Ignore other directives to gtk-doc
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]