From 0076f3b3f825b39e4629b29c6525864f68d9a855 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 9 Dec 2007 03:03:18 +0000 Subject: [PATCH] * parse.y (parser_magic_comment): delimits with a semicolon. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ parse.y | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5056e3d572..918f1c0fcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 9 12:03:16 2007 Nobuyoshi Nakada + + * parse.y (parser_magic_comment): delimits with a semicolon. + Sun Dec 9 11:29:23 2007 Nobuyoshi Nakada * string.c (tr_trans): get rid of segfaults when has mulitbytes but diff --git a/parse.y b/parse.y index 0a44cbe1db..2cf0ecde31 100644 --- a/parse.y +++ b/parse.y @@ -5860,7 +5860,7 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len) } } else { - for (vbeg = str; len > 0 && *str != '"' && !ISSPACE(*str); --len, str++); + for (vbeg = str; len > 0 && *str != '"' && *str != ';' && !ISSPACE(*str); --len, str++); vend = str; } while (len > 0 && (*str == ';' || ISSPACE(*str))) --len, str++;