summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-26 22:06:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-26 22:06:10 -0700
commita78acf40e25f14093ae8d60c04f7f00e99330a38 (patch)
tree24a1c0619e2c9f048dc7b2d341afcc7e55adbe91 /ext
parent81064b63f140ff913cd4e5c9fa57b036fc5dca4e (diff)
downloadpsych-a78acf40e25f14093ae8d60c04f7f00e99330a38.zip
alias supported
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/parser.c7
1 files changed, 7 insertions, 0 deletions
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;