summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-31 08:37:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-31 08:37:47 +0000
commitcecaed6f4af527cde4ab03eb61baeb397cd96b5e (patch)
tree8aa0738f21319dc82e0403a4f065f831a907ebcc /parse.y
parent7e953f2d81f7a68abdd711180b56246b5d1a83dc (diff)
downloadruby-cecaed6f4af527cde4ab03eb61baeb397cd96b5e.tar.gz
ruby-cecaed6f4af527cde4ab03eb61baeb397cd96b5e.tar.xz
ruby-cecaed6f4af527cde4ab03eb61baeb397cd96b5e.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index ae55beee3..2e1882626 100644
--- a/parse.y
+++ b/parse.y
@@ -2863,7 +2863,8 @@ yylex()
return 0;
}
if (c != '=') continue;
- if (strncmp(lex_p, "end", 3) == 0 && ISSPACE(lex_p[3])) {
+ if (strncmp(lex_p, "end", 3) == 0 &&
+ (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) {
break;
}
}