An algorithm that generates optimized regexes for matching long lists of literal strings.
Unknown Field: copyright | |
Copyright 2006-2021 by the Pygments team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Constant | CS_ESCAPE |
Undocumented |
Constant | FIRST_ELEMENT |
Undocumented |
Function | make_charset |
Undocumented |
Function | regex_opt |
Return a compiled regex that matches any string in the given list. |
Function | regex_opt_inner |
Return a regex that matches any string in the sorted list of strings. |