summaryrefslogtreecommitdiff
path: root/ext/syck/token.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 21:46:47 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 21:46:47 +0000
commitc601cf5318c035460250284057a62b7eddcb79fc (patch)
tree65ef3ad8b83ecd970f50ff2c9dc63ed354a0ee33 /ext/syck/token.c
parentd8bd0ea32ed5952ea4052d48a1142f27e5c1af74 (diff)
* lib/gram.c: fixes to one-line documents and end of stream documents.
* lib/syck.c, lib/syck.h: add root_on_error to parser struct, specifying the symbol to be returned on a parse error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/token.c')
-rw-r--r--ext/syck/token.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/syck/token.c b/ext/syck/token.c
index dc8802740b3..8ca144f1bb2 100644
--- a/ext/syck/token.c
+++ b/ext/syck/token.c
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.5 on Tue May 13 14:03:13 2003 */
+/* Generated by re2c 0.5 on Thu May 15 15:42:01 2003 */
#line 1 "token.re"
/*
* token.re
@@ -134,7 +134,7 @@
if ( *YYCURSOR == '\0' ) \
{ \
ict = -1; \
- start = YYCURSOR; \
+ start = YYCURSOR - 1; \
} \
else if ( *YYLINEPTR == ' ' ) \
{ \
@@ -1637,7 +1637,7 @@ yyerror( char *msg )
if ( syck_parser_ptr->error_handler == NULL )
syck_parser_ptr->error_handler = syck_default_error_handler;
- syck_parser_ptr->root = 0;
+ syck_parser_ptr->root = syck_parser_ptr->root_on_error;
(syck_parser_ptr->error_handler)(syck_parser_ptr, msg);
}