gobject-introspection r1029 - in trunk: . giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r1029 - in trunk: . giscanner
- Date: Tue, 13 Jan 2009 12:52:13 +0000 (UTC)
Author: johan
Date: Tue Jan 13 12:52:12 2009
New Revision: 1029
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1029&view=rev
Log:
2009-01-13 Johan Dahlin <jdahlin async com br>
* giscanner/annotationparser.py:
Fix a bug where \n was not present in a comment
Modified:
trunk/ChangeLog
trunk/giscanner/annotationparser.py
Modified: trunk/giscanner/annotationparser.py
==============================================================================
--- trunk/giscanner/annotationparser.py (original)
+++ trunk/giscanner/annotationparser.py Tue Jan 13 12:52:12 2009
@@ -138,6 +138,15 @@
aa.parse(self._namespace)
def _parse_comment(self, comment):
+ # We're looking for gtk-doc comments here, they look like this:
+ # /**
+ # * symbol:
+ #
+ # symbol is currently one of:
+ # - function: gtk_widget_show
+ # - signal: GtkWidget::destroy
+ # - property: GtkWidget:visible
+ #
comment = comment.lstrip()
if not comment.startswith(_COMMENT_HEADER):
return
@@ -147,8 +156,9 @@
return
comment = comment[2:]
- pos = comment.index('\n ')
-
+ pos = comment.find('\n ')
+ if pos == -1:
+ return
block_name = comment[:pos]
block_name = block_name.strip()
if not block_name.endswith(':'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]