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 18dea6c commit 356c97cCopy full SHA for 356c97c
lib/prism/translation/ripper.rb
@@ -2165,7 +2165,19 @@ def visit_super_node(node)
2165
# :foo
2166
# ^^^^
2167
def visit_symbol_node(node)
2168
- visit_symbol_literal_node(node)
+ if (opening = node.opening) && opening.match?(/^%s|['"]$/)
2169
+ bounds(node.value_loc)
2170
+ content = on_string_content
2171
+
2172
+ if !(value = node.value).empty?
2173
+ content = on_string_add(content, on_tstring_content(value))
2174
+ end
2175
2176
+ on_dyna_symbol(content)
2177
+ else
2178
2179
+ on_symbol_literal(on_symbol(visit_token(node.value)))
2180
2181
end
2182
2183
# true
0 commit comments