'Setting-based customizations; run when parsing begins.'

def init_customizations(self, settings):

    if settings.pep_references:
        self.implicit_dispatch.append((self.patterns.pep, self.pep_reference))
    if settings.rfc_references:
        self.implicit_dispatch.append((self.patterns.rfc, self.rfc_reference))
