allow single quoted labels in hashes; ref #3231

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-02 16:14:20 +09:00
parent 13d0832965
commit cc3f1b7f5c
+4
View File
@@ -3241,6 +3241,10 @@ assoc : arg_value tASSOC arg_value
{
$$ = cons(new_sym(p, $1), $2);
}
| tLABEL_END arg_value
{
$$ = cons(new_sym(p, new_strsym(p, $1)), $2);
}
| tSTRING_BEG tLABEL_END arg_value
{
$$ = cons(new_sym(p, new_strsym(p, $2)), $3);