aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 2 insertions, 5 deletions
diff --git a/parse.y b/parse.y
index 0981a4a74b..944df300da 100644
--- a/parse.y
+++ b/parse.y
@@ -4028,19 +4028,16 @@ str_extend(list, term)
break;
case '{':
if (brace != -1) nest++;
- case '\"':
- case '/':
- case '`':
+ default:
if (c == term) {
pushback(c);
list_append(list, NEW_STR(rb_str_new2("#")));
- rb_warning("bad substitution in string");
+ rb_warn("bad substitution in string");
tokfix();
list_append(list, NEW_STR(rb_str_new(tok(), toklen())));
newtok();
return list;
}
- default:
tokadd(c);
break;
}