summaryrefslogtreecommitdiff
path: root/ext/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/parser.c')
-rw-r--r--ext/parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/parser.c b/ext/parser.c
index 0691d48..3aecb59 100644
--- a/ext/parser.c
+++ b/ext/parser.c
@@ -1265,7 +1265,10 @@ yaml_parser_process_directives(yaml_parser_t *parser,
goto error;
}
if (token->data.version_directive.major != 1
- || token->data.version_directive.minor != 1) {
+ || (token->data.version_directive.minor != 1
+ && token->data.version_directive.minor != 2
+ )
+ ) {
yaml_parser_set_parser_error(parser,
"found incompatible YAML document", token->start_mark);
goto error;