diff options
author | Johan Dahlin <johan@gnome.org> | 2009-12-09 16:38:43 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-12-09 16:39:47 -0200 |
commit | 0e68edfaeaee03bb8e23b09869d398d2460c75a0 (patch) | |
tree | 1a9c840dba391310e168a19ea2f12b4e6a438d13 /giscanner | |
parent | 0910fc4205792557edbf80205d07a8729e193f33 (diff) | |
download | gobject-introspection-0e68edfaeaee03bb8e23b09869d398d2460c75a0.tar.gz |
Fix an annotationparser bug for empty tags
Makes sure we can parse empty tags such as '@foo:' without
adding a : in the end which the typelib compiler will complain
about
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/annotationparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index c65a8328..18c40edc 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -222,6 +222,8 @@ class AnnotationParser(object): if len(parts) == 1: tag_name = parts[0] value = '' + if tag_name.endswith(':'): + tag_name = tag_name[:-1] else: tag_name, value = parts return (tag_name, value) |