+2009-01-13 Johan Dahlin <jdahlin@async.com.br>
+
+ * giscanner/annotationparser.py:
+ Fix a bug where \n was not present in a comment
+
2009-01-12 Johan Dahlin <jdahlin@async.com.br>
Bug 562467 – Property annotation
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
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(':'):