eric6/ThirdParty/Pygments/pygments/unistring.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
6 Strings of all Unicode characters of a certain category. 6 Strings of all Unicode characters of a certain category.
7 Used for matching in Unicode-aware languages. Run to regenerate. 7 Used for matching in Unicode-aware languages. Run to regenerate.
8 8
9 Inspired by chartypes_create.py from the MoinMoin project. 9 Inspired by chartypes_create.py from the MoinMoin project.
10 10
11 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 11 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
12 :license: BSD, see LICENSE for details. 12 :license: BSD, see LICENSE for details.
13 """ 13 """
14 14
15 import sys 15 import sys
16 16
153 yield u'%s-%s' % (a, b) 153 yield u'%s-%s' % (a, b)
154 154
155 155
156 if __name__ == '__main__': # pragma: no cover 156 if __name__ == '__main__': # pragma: no cover
157 import unicodedata 157 import unicodedata
158
159 # we need Py3 for the determination of the XID_* properties
160 if sys.version_info[:2] < (3, 3):
161 raise RuntimeError('this file must be regenerated with Python 3.3+')
162 158
163 categories_bmp = {'xid_start': [], 'xid_continue': []} 159 categories_bmp = {'xid_start': [], 'xid_continue': []}
164 categories_nonbmp = {'xid_start': [], 'xid_continue': []} 160 categories_nonbmp = {'xid_start': [], 'xid_continue': []}
165 161
166 with open(__file__) as fp: 162 with open(__file__) as fp:

eric ide

mercurial