Skip to content

Commit e41f55e

Browse files
committedNov 22, 2013
Rename '{' parser token to tLBRACE
1 parent c32f134 commit e41f55e

File tree

3 files changed

+2051
-2093
lines changed

3 files changed

+2051
-2093
lines changed
 

‎lib/opal/parser/grammar.rb

+2,049-2,091
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/opal/parser/grammar.y

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ rule
746746
{
747747
result = new_array(val[0], val[1], val[2])
748748
}
749-
| '{' assoc_list tRCURLY
749+
| tLBRACE assoc_list tRCURLY
750750
{
751751
result = new_hash(val[0], val[1], val[2])
752752
}

‎lib/opal/parser/lexer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ def yylex
10751075
elsif @lex_state == :expr_endarg
10761076
result = :LBRACE_ARG
10771077
else
1078-
result = '{'
1078+
result = :tLBRACE
10791079
end
10801080

10811081
@lex_state = :expr_beg

0 commit comments

Comments
 (0)
Please sign in to comment.