summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-24 20:12:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-29 09:41:27 +0900
commitd32e2bb02d15008da008057fbd6b541662d52588 (patch)
tree720f8f259f827a3c48a87eee603e9bffa4ca0d9b /ext/ripper
parentc7ceaa6d3c518d77130fbb04e4e3d3148fb49072 (diff)
Allow references to $$ in Ripper DSL
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/tools/dsl.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb
index d2b9715a712..49ff51711f0 100644
--- a/ext/ripper/tools/dsl.rb
+++ b/ext/ripper/tools/dsl.rb
@@ -7,6 +7,9 @@
# v2 = dispatch0(void_stmt);
# $$ = dispatch2(stmts_add, v1, v2);
+$dollar = "$$"
+alias $$ $dollar
+
class DSL
def initialize(code, options)
@events = {}