diff options
author | Yukihiro Matsumoto <[email protected]> | 1997-11-25 15:03:28 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-17 22:09:33 +0900 |
commit | ab261638f5b87384fa2bda5678cb38ae9a505209 (patch) | |
tree | b93a5710992f99f4a108736e7ef0fd8bc710f609 /parse.y | |
parent | cfd31fa21b67c4992a0360d7c605de1c6add874e (diff) |
version 1.0-971125v1_0_971125
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971125.tar.gz
Tue Nov 25 15:03:28 1997 Yukihiro Matsumoto <[email protected]>
* version 1.0-971125
Fri Nov 21 13:17:12 1997 Yukihiro Matsumoto <[email protected]>
* parse.y (yylex): skip multibyte characters in comments.
Wed Nov 19 17:19:20 1997 Yukihiro Matsumoto <[email protected]>
* parse.y (call_args): wrong node generation.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -695,6 +695,7 @@ call_args0 : args } | STAR arg { + value_expr($2); $$ = $2; } @@ -730,12 +731,15 @@ mrhs : args } | STAR arg { + value_expr($2); $$ = $2; } ret_args : call_args0 { - if ($1 && $1->nd_next == 0) { + if ($1 && + nd_type($1) == NODE_ARRAY && + $1->nd_next == 0) { $$ = $1->nd_head; } else { @@ -1977,10 +1981,11 @@ retry: while ((c = nextc()) != '\n') { if (c == -1) return 0; - if (c == '\\') { /* skip a char */ + if (c == '\\') { /* skip a char */ c = nextc(); if (c == '\n') sourceline++; } + if (ismbchar(c)) c = nextc(); } /* fall through */ case '\n': |