diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-09 03:03:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-09 03:03:18 +0000 |
commit | 0076f3b3f825b39e4629b29c6525864f68d9a855 (patch) | |
tree | d4794966fdc9c492feb0950df34a2095dd69f35f | |
parent | 4892115adae731491f02bbcbf721334fd2cfc4a1 (diff) | |
download | ruby-0076f3b3f825b39e4629b29c6525864f68d9a855.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Dec 9 12:03:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (parser_magic_comment): delimits with a semicolon. + Sun Dec 9 11:29:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * string.c (tr_trans): get rid of segfaults when has mulitbytes but @@ -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++; |