@classmethod
def from_pygments_lexer_cls(cls, lexer_cls: 'PygmentsLexerCls') ->'RegexSync':
    """
        Create a :class:`.RegexSync` instance for this Pygments lexer class.
        """
    patterns = {'Python': '^\\s*(class|def)\\s+', 'Python 3':
        '^\\s*(class|def)\\s+', 'HTML': '<[/a-zA-Z]', 'JavaScript':
        '\\bfunction\\b'}
    p = patterns.get(lexer_cls.name, '^')
    return cls(p)
