[ruby/yarp] Support parsing numbered parameters

ffc8f35e56
This commit is contained in:
Kevin Newton 2023-09-13 11:16:56 -04:00 committed by git
parent 236fe914af
commit 6031ab18c7
9 changed files with 103 additions and 167 deletions

View file

@ -440,10 +440,6 @@ module YARP
# arguments. We get rid of that here.
names = names.grep_v(Integer)
# TODO: We don't support numbered local variables yet, so we get rid
# of those here.
names = names.grep_v(/^_\d$/)
# For some reason, CRuby occasionally pushes this special local
# variable when there are splat arguments. We get rid of that here.
names = names.grep_v(:"#arg_rest")