summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-19 07:54:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-19 07:54:28 +0000
commitf1bb1f584899eeec1227a6d7fcf4b7730a485821 (patch)
tree0e2fa33a858e6237dd6e9b81d83c8a9b2b9c632a /parse.y
parent053140491c5594ee81064ef3dc19d32b3e907794 (diff)
000919
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 39ac6f6f60..cf0687609a 100644
--- a/parse.y
+++ b/parse.y
@@ -3398,8 +3398,6 @@ yylex()
newtok();
c = nextc();
switch (c) {
- case '~': /* $~: match-data */
- /* fall through */
case '_': /* $_: last read line string */
c = nextc();
if (is_identchar(c)) {
@@ -3409,7 +3407,9 @@ yylex()
}
pushback(c);
c = '_';
- local_cnt('_');
+ /* fall through */
+ case '~': /* $~: match-data */
+ local_cnt(c);
/* fall through */
case '*': /* $*: argv */
case '$': /* $$: pid */