From 445c942f7d56e11cde9331d61af87427fad94f77 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sat, 6 Jun 2020 02:13:38 +0200 Subject: [PATCH] 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. --- girparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/girparser.c b/girparser.c index 53450baf5..ad676e33f 100644 --- a/girparser.c +++ b/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;