GNOME Bugzilla – Bug 675915
annotationparser: Don't be too greedy when reading tags
Last modified: 2015-02-07 16:51:00 UTC
farstream has annotations of the form: /** * FsSession:codecs-without-config: * * Type: GLib.List(FsCodec) * Transfer: full * * This is the same list of codecs as #FsSession:codecs * without.... g-ir-scanner was attributing the description to the Transfer tag. This commit improves annotationparser's description block detection code, to work when there are tags right before the description.
Created attachment 213894 [details] [review] annotationparser: Don't be too greedy when reading tags
Review of attachment 213894 [details] [review]: The main concern I have about this is we need to "do what gtk-doc does". That was a major motivation behind dieterv's reworking of the parser. So I assume we supported this before his reworking, but we don't anymore, which is a regression from farstream's perspective. But it's worth considering whether the right fix here is for them to move the block annotations down below the description. Regardless though, this should get a regression test in tests/scanner/regress.h.
Created attachment 214123 [details] [review] regress: test tags above description parsing
dieterv pointed out this is a dupe on irc. *** This bug has been marked as a duplicate of bug 674658 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]