ruby-changes:61414
From: Nobuyoshi <ko1@a...>
Date: Fri, 29 May 2020 09:43:22 +0900 (JST)
Subject: [ruby-changes:61414] d32e2bb02d (master): Allow references to $$ in Ripper DSL
https://git.ruby-lang.org/ruby.git/commit/?id=d32e2bb02d From d32e2bb02d15008da008057fbd6b541662d52588 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 24 May 2020 20:12:32 +0900 Subject: Allow references to $$ in Ripper DSL diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb index d2b9715..49ff517 100644 --- a/ext/ripper/tools/dsl.rb +++ b/ext/ripper/tools/dsl.rb @@ -7,6 +7,9 @@ https://github.com/ruby/ruby/blob/trunk/ext/ripper/tools/dsl.rb#L7 # v2 = dispatch0(void_stmt); # $$ = dispatch2(stmts_add, v1, v2); +$dollar = "$$" +alias $$ $dollar + class DSL def initialize(code, options) @events = {} -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/