Skip to content

Commit 35cc655

Browse files
committed
Remove %q workaround. dont need it anymore
1 parent 4436675 commit 35cc655

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/repl_completion.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ def info
6060
private
6161

6262
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-
6663
ast = Prism.parse(code, scopes: [binding.local_variables]).value
6764
name = code[/(@@|@|\$)?\w*[!?=]?\z/]
6865
*parents, target_node = find_target ast, code.bytesize - name.bytesize

0 commit comments

Comments
 (0)