Permalink
Browse files

allow single quoted labels in hashes; ref #3231

  • Loading branch information...
matz committed Nov 2, 2016
1 parent 13d0832 commit cc3f1b7f5cccd652c4348d28f3e678a9ea3ac520
Showing with 4 additions and 0 deletions.
  1. +4 −0 mrbgems/mruby-compiler/core/parse.y
@@ -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);

0 comments on commit cc3f1b7

Please sign in to comment.