instance method
Prism::Translation::Parser::Lexer#regexp?
regexp?(quote)
lib/prism/translation/parser/lexer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/parser/lexer.rb, line 809
def regexp?(quote)
quote == "/" || quote.start_with?("%r")
end
Regexp allow interpolation but are handled differently during unescaping