ThirdParty/Pygments/pygments/lexer.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2426
da76c71624de
child 2669
11a6696ff868
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
6 Base lexer classes. 6 Base lexer classes.
7 7
8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 from __future__ import unicode_literals # __IGNORE_WARNING__
12 try:
13 str = unicode
14 except (NameError):
15 pass
16
11 import re, itertools 17 import re, itertools
12 18
13 from pygments.filter import apply_filters, Filter 19 from pygments.filter import apply_filters, Filter
14 from pygments.filters import get_filter_by_name 20 from pygments.filters import get_filter_by_name
15 from pygments.token import Error, Text, Other, _TokenType 21 from pygments.token import Error, Text, Other, _TokenType

eric ide

mercurial