Skip to content

Commit

Permalink
allow single quoted labels in hashes; ref #3231
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Nov 2, 2016
1 parent 13d0832 commit cc3f1b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mrbgems/mruby-compiler/core/parse.y
Expand Up @@ -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);
Expand Down

0 comments on commit cc3f1b7

Please sign in to comment.