4 ~~~~~~~~~~~~~~~~~ |
4 ~~~~~~~~~~~~~~~~~ |
5 |
5 |
6 An algorithm that generates optimized regexes for matching long lists of |
6 An algorithm that generates optimized regexes for matching long lists of |
7 literal strings. |
7 literal strings. |
8 |
8 |
9 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. |
9 :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. |
10 :license: BSD, see LICENSE for details. |
10 :license: BSD, see LICENSE for details. |
11 """ |
11 """ |
12 |
12 |
13 import re |
13 import re |
14 from re import escape |
14 from re import escape |