We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4436675 commit 35cc655Copy full SHA for 35cc655
1 file changed
lib/repl_completion.rb
@@ -60,9 +60,6 @@ def info
60
private
61
62
def analyze_code(code, binding = Object::TOPLEVEL_BINDING)
63
- # Workaround for https://github.com/ruby/prism/issues/1592
64
- return if code.match?(/%[qQ]\z/)
65
-
66
ast = Prism.parse(code, scopes: [binding.local_variables]).value
67
name = code[/(@@|@|\$)?\w*[!?=]?\z/]
68
*parents, target_node = find_target ast, code.bytesize - name.bytesize
0 commit comments