From a78acf40e25f14093ae8d60c04f7f00e99330a38 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 26 Sep 2009 22:06:10 -0700 Subject: alias supported --- ext/psych/parser.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext') diff --git a/ext/psych/parser.c b/ext/psych/parser.c index 2efdb09..c7237e5 100644 --- a/ext/psych/parser.c +++ b/ext/psych/parser.c @@ -65,6 +65,13 @@ static VALUE parse_string(VALUE self, VALUE string) event.data.document_end.implicit == 1 ? Qtrue : Qfalse ); break; + case YAML_ALIAS_EVENT: + rb_funcall(handler, rb_intern("alias"), 1, + event.data.alias.anchor ? + rb_str_new2(event.data.alias.anchor) : + Qnil + ); + break; case YAML_STREAM_END_EVENT: rb_funcall(handler, rb_intern("end_stream"), 0); done = 1; -- cgit v1.2.3