summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-21 07:48:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-21 07:48:11 +0000
commitebd866348254f245f6d689ece6781499489aa411 (patch)
treec469f0479bf606f2974af1791e13606e759cfd93 /parse.y
parent1dfb5bb7fc6ff3b32dbf70ed02936a98980ed19d (diff)
parse.y: escape all closing parens
* parse.y (simple_re_meta): escape all closing characters, not only round parenthesis. [ruby-core:53578] [Bug #8133] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 62782709f8..7399aa9c25 100644
--- a/parse.y
+++ b/parse.y
@@ -5994,7 +5994,7 @@ simple_re_meta(int c)
switch (c) {
case '$': case '*': case '+': case '.':
case '?': case '^': case '|':
- case ')':
+ case ')': case ']': case '}': case '>':
return TRUE;
default:
return FALSE;