3
V'íc ã @ sl d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ej dZ
edZdd Zd
d Z
dd
dZdS )a
pygments.regexopt
~~~~~~~~~~~~~~~~~
An algorithm that generates optimized regexes for matching long lists of
literal strings.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
é N)Úescape)Úcommonprefix)Úgroupby)Ú
itemgetterz[\[\^\\\-\]]c C s dt jdd dj| d S )Nú[c S s d| j S )Nú\)Úgroup)Úm© r