From 8e40ad6074f9eb5958735878e44aa2ca9fcdda1c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 26 Sep 2009 21:55:50 -0700 Subject: implicit start and end document --- ext/psych/parser.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext') 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; -- cgit v1.2.3