Skip to content

Commit

Permalink
Showing 3 changed files with 2,051 additions and 2,093 deletions.
4,140 changes: 2,049 additions & 2,091 deletions lib/opal/parser/grammar.rb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/opal/parser/grammar.y
Original file line number Diff line number Diff line change
@@ -746,7 +746,7 @@ rule
{
result = new_array(val[0], val[1], val[2])
}
| '{' assoc_list tRCURLY
| tLBRACE assoc_list tRCURLY
{
result = new_hash(val[0], val[1], val[2])
}
2 changes: 1 addition & 1 deletion lib/opal/parser/lexer.rb
Original file line number Diff line number Diff line change
@@ -1075,7 +1075,7 @@ def yylex
elsif @lex_state == :expr_endarg
result = :LBRACE_ARG
else
result = '{'
result = :tLBRACE
end

@lex_state = :expr_beg

0 comments on commit e41f55e

Please sign in to comment.