mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +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_ALIAS,
|
||||||
STATE_TYPE,
|
STATE_TYPE,
|
||||||
STATE_ATTRIBUTE,
|
STATE_ATTRIBUTE,
|
||||||
STATE_PASSTHROUGH
|
STATE_PASSTHROUGH,
|
||||||
|
STATE_DOC_FORMAT, /* 35 */
|
||||||
} ParseState;
|
} ParseState;
|
||||||
|
|
||||||
typedef struct _ParseContext ParseContext;
|
typedef struct _ParseContext ParseContext;
|
||||||
@@ -3159,6 +3160,11 @@ start_element_handler (GMarkupParseContext *context,
|
|||||||
state_switch (ctx, STATE_PASSTHROUGH);
|
state_switch (ctx, STATE_PASSTHROUGH);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
else if (strcmp ("doc:format", element_name) == 0)
|
||||||
|
{
|
||||||
|
state_switch (ctx, STATE_DOC_FORMAT);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'e':
|
case 'e':
|
||||||
@@ -3843,6 +3849,10 @@ end_element_handler (GMarkupParseContext *context,
|
|||||||
state_switch (ctx, ctx->prev_state);
|
state_switch (ctx, ctx->prev_state);
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case STATE_PASSTHROUGH:
|
||||||
ctx->unknown_depth -= 1;
|
ctx->unknown_depth -= 1;
|
||||||
|
Reference in New Issue
Block a user