summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-06-06 02:13:38 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2020-07-12 04:10:40 +0200
commitb8c92fddbfbadc910ef0c0c6c65bd5648b8e86ca (patch)
tree24fb56f6eed5696ef96473d2debce108b422fb5f /girepository
parente7c17469ef3eb1c3a1c4c717800c277ee231405c (diff)
downloadgobject-introspection-b8c92fddbfbadc910ef0c0c6c65bd5648b8e86ca.tar.gz
Add the notion of standalone doc sections.
Up to now, section annotations had to match a class or interface name in order to be serialized in the gir. With this commit, they now get serialized as docsection nodes, for potential use by documentation tools.
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 53450baf..ad676e33 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -2830,7 +2830,8 @@ start_element_handler (GMarkupParseContext *context,
ctx, error))
goto out;
if (strcmp ("doc", element_name) == 0 || strcmp ("doc-deprecated", element_name) == 0 ||
- strcmp ("doc-stability", element_name) == 0 || strcmp ("doc-version", element_name) == 0)
+ strcmp ("doc-stability", element_name) == 0 || strcmp ("doc-version", element_name) == 0 ||
+ strcmp ("docsection", element_name) == 0)
{
state_switch (ctx, STATE_PASSTHROUGH);
goto out;