зеркало из https://github.com/github/ruby.git
parse.y: Fix locations of NODE_ARRAY of opt_call_args
* parse.y: Fix to only include a range of assocs (exclude ',' form range). e.g. The locations of the NODE_ARRAY is fixed: ``` m1(str: "bar",) ``` * Before ``` NODE_ARRAY (line: 1, code_range: (1,3)-(1,14)) ``` * After ``` NODE_ARRAY (line: 1, code_range: (1,3)-(1,13)) ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
33913f1a6c
Коммит
e44f2b7d10
2
parse.y
2
parse.y
|
@ -2478,7 +2478,7 @@ opt_call_args : none
|
|||
| assocs ','
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = $1 ? new_list(new_hash($1, &@1), &@$) : 0;
|
||||
$$ = $1 ? new_list(new_hash($1, &@1), &@1) : 0;
|
||||
/*%
|
||||
$$ = arg_add_assocs(arg_new(), $1);
|
||||
%*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче