1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-12-09 03:03:18 +00:00
parent 4892115ada
commit 0076f3b3f8
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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++;