summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index b1147fc97d..ac26a01577 100644
--- a/parse.y
+++ b/parse.y
@@ -3847,6 +3847,12 @@ str_extend(list, term)
tokadd(c);
goto fetch_id;
+ case '-':
+ tokadd(c);
+ c = nextc();
+ tokadd(c);
+ goto fetch_id;
+
default:
if (c == term) {
list_append(list, NEW_STR(rb_str_new2("#$")));