mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Merge branch '3634-git-doc-format' into 'main'
girparser: Ignore new doc:format element in GIR files Closes #3634 See merge request GNOME/glib!4550
This commit is contained in:
@@ -107,7 +107,8 @@ typedef enum
|
||||
STATE_ALIAS,
|
||||
STATE_TYPE,
|
||||
STATE_ATTRIBUTE,
|
||||
STATE_PASSTHROUGH
|
||||
STATE_PASSTHROUGH,
|
||||
STATE_DOC_FORMAT, /* 35 */
|
||||
} ParseState;
|
||||
|
||||
typedef struct _ParseContext ParseContext;
|
||||
@@ -3159,6 +3160,11 @@ start_element_handler (GMarkupParseContext *context,
|
||||
state_switch (ctx, STATE_PASSTHROUGH);
|
||||
goto out;
|
||||
}
|
||||
else if (strcmp ("doc:format", element_name) == 0)
|
||||
{
|
||||
state_switch (ctx, STATE_DOC_FORMAT);
|
||||
goto out;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'e':
|
||||
@@ -3843,6 +3849,10 @@ end_element_handler (GMarkupParseContext *context,
|
||||
state_switch (ctx, ctx->prev_state);
|
||||
}
|
||||
break;
|
||||
case STATE_DOC_FORMAT:
|
||||
if (require_end_element (context, ctx, "doc:format", element_name, error))
|
||||
state_switch (ctx, STATE_REPOSITORY);
|
||||
break;
|
||||
|
||||
case STATE_PASSTHROUGH:
|
||||
ctx->unknown_depth -= 1;
|
||||
|
Reference in New Issue
Block a user