Skip to content

Commit

Permalink
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/opal/nodes/literal.rb
Original file line number Diff line number Diff line change
@@ -163,8 +163,8 @@ def compile
end
end

class ExclusiveRangeNode < Base
handle :dot2
class InclusiveRangeNode < Base
handle :irange

children :start, :finish

@@ -175,8 +175,8 @@ def compile
end
end

class InclusiveRangeNode < Base
handle :dot3
class ExclusiveRangeNode < Base
handle :erange

children :start, :finish

4 changes: 2 additions & 2 deletions lib/opal/parser/grammar.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/opal/parser/grammar.y
Original file line number Diff line number Diff line change
@@ -469,12 +469,12 @@ rule
| backref tOP_ASGN arg
| arg tDOT2 arg
{
result = s(:dot2, val[0], val[2])
result = s(:irange, val[0], val[2])
result.line = val[0].line
}
| arg tDOT3 arg
{
result = s(:dot3, val[0], val[2])
result = s(:erange, val[0], val[2])
result.line = val[0].line
}
| arg '+' arg

0 comments on commit 6b02c5e

Please sign in to comment.