diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-04 16:53:14 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-04 16:53:14 +0000 |
commit | 77e58a3398cde8a0e9b0cb07ffe20e6137efe41c (patch) | |
tree | 1c1bc777806358ae3277e67b173bd96242f6d459 /ext | |
parent | fccfc4f7de195db7b690cb17673c8942a8175fce (diff) | |
download | ruby-77e58a3398cde8a0e9b0cb07ffe20e6137efe41c.tar.gz |
* ext/psych/parser.c (parse): Use context_mark for indicating error
line and column.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/psych/parser.c b/ext/psych/parser.c index e68768f562..f3928a9510 100644 --- a/ext/psych/parser.c +++ b/ext/psych/parser.c @@ -99,8 +99,8 @@ static VALUE parse(VALUE self, VALUE yaml) while(!done) { if(!yaml_parser_parse(parser, &event)) { VALUE path; - size_t line = parser->mark.line; - size_t column = parser->mark.column; + size_t line = parser->context_mark.line + 1; + size_t column = parser->context_mark.column + 1; if(rb_respond_to(yaml, id_path)) path = rb_funcall(yaml, id_path, 0); |