mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow references to $$ in Ripper DSL
This commit is contained in:
parent
c7ceaa6d3c
commit
d32e2bb02d
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
||||||
# v2 = dispatch0(void_stmt);
|
# v2 = dispatch0(void_stmt);
|
||||||
# $$ = dispatch2(stmts_add, v1, v2);
|
# $$ = dispatch2(stmts_add, v1, v2);
|
||||||
|
|
||||||
|
$dollar = "$$"
|
||||||
|
alias $$ $dollar
|
||||||
|
|
||||||
class DSL
|
class DSL
|
||||||
def initialize(code, options)
|
def initialize(code, options)
|
||||||
@events = {}
|
@events = {}
|
||||||
|
|
Loading…
Reference in a new issue