summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-26 21:55:50 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-26 21:55:50 -0700
commit8e40ad6074f9eb5958735878e44aa2ca9fcdda1c (patch)
tree3afb243c8e336ccfb3b7b3979f355c48aa1a7554 /ext
parent850df20bf83d182703d075951bfb95fb4531748a (diff)
downloadpsych-8e40ad6074f9eb5958735878e44aa2ca9fcdda1c.zip
implicit start and end document
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/psych/parser.c b/ext/psych/parser.c
index a9b0667..2efdb09 100644
--- a/ext/psych/parser.c
+++ b/ext/psych/parser.c
@@ -60,6 +60,11 @@ static VALUE parse_string(VALUE self, VALUE string)
);
}
break;
+ case YAML_DOCUMENT_END_EVENT:
+ rb_funcall(handler, rb_intern("end_document"), 1,
+ event.data.document_end.implicit == 1 ? Qtrue : Qfalse
+ );
+ break;
case YAML_STREAM_END_EVENT:
rb_funcall(handler, rb_intern("end_stream"), 0);
done = 1;