mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow single quoted labels in hashes; ref #3231
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user