mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/prism] Fix back reference for ruby_parser on Ruby 2.7
Symbol#name is only a thing since Ruby 3.0 https://github.com/ruby/prism/commit/2de82b15fc
This commit is contained in:
parent
6c34880111
commit
b08573c815
@ -152,7 +152,7 @@ module Prism
|
||||
# ^^
|
||||
# ```
|
||||
def visit_back_reference_read_node(node)
|
||||
s(node, :back_ref, node.name.name.delete_prefix("$").to_sym)
|
||||
s(node, :back_ref, node.name.to_s.delete_prefix("$").to_sym)
|
||||
end
|
||||
|
||||
# ```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user