summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-30 14:33:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-30 14:33:38 +0000
commit77df5bb1b5ab3e4d6ed32d0b43acb69b3167f5dd (patch)
treedb8c33e6c55542025a1c378cc40bf3cae9a5ff69 /parse.y
parenta6c637f013b7a4031df13a56fdb00560369d2aa8 (diff)
parse.y: escaped closing parenthsis
* parse.y (simple_re_meta): escaped closing parenthsis has different meaning. [Bug #7610] [ruby-core:51088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 1b57719296..f9e832996e 100644
--- a/parse.y
+++ b/parse.y
@@ -5971,6 +5971,7 @@ simple_re_meta(int c)
switch (c) {
case '$': case '*': case '+': case '.':
case '?': case '^': case '|':
+ case ')':
return TRUE;
default:
return FALSE;