diff options
author | Colin Walters <walters@verbum.org> | 2010-06-24 16:39:35 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-06-25 09:19:14 -0400 |
commit | 0a674061eb4b7307f62c330bb3ebec5ad36ab1c6 (patch) | |
tree | 6ff9e298011052ef2ecb08e55b6440b99566400d /tests/scanner/annotation.h | |
parent | 11cfe386c37ced44a8e3efb5556bde3a43a11171 (diff) | |
download | gobject-introspection-0a674061eb4b7307f62c330bb3ebec5ad36ab1c6.tar.gz |
Clean up annotation parsing, don't try to parse invalid annotations
The old parser tried to parse:
@foo: some text here (other text)
Reject this. We strictly require another colon at the end to parse
the text in between as (option) (other option).
Futher ensure we only attempt to do option parse if we find something
that matches the strict regexp ([A-Za-z]+). This could be tightened
further.
TODO: Have a warning for something that looks like an annotation,
but isn't.
https://bugzilla.gnome.org/show_bug.cgi?id=622659
Diffstat (limited to 'tests/scanner/annotation.h')
-rw-r--r-- | tests/scanner/annotation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/scanner/annotation.h b/tests/scanner/annotation.h index ace36515..e4f29065 100644 --- a/tests/scanner/annotation.h +++ b/tests/scanner/annotation.h @@ -142,6 +142,8 @@ void annotation_set_source_file (const char *fname); gint annotation_attribute_func (AnnotationObject *object, const gchar *data); +void annotation_invalid_annotation (int foo); + /** * AnnotationStruct: * |