module Regexp::Syntax

def new(name)

def new(name)
  warn 'Regexp::Syntax.new is deprecated in favor of Regexp::Syntax.for. '\
       'It does not return distinct instances and will be removed in v3.0.0.'
  self.for(name)
end