eric6/ThirdParty/Pygments/pygments/lexers/modula2.py

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.modula2 3 pygments.lexers.modula2
4 ~~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Multi-Dialect Lexer for Modula-2. 6 Multi-Dialect Lexer for Modula-2.
7 7
8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 13
1545 token = Error 1545 token = Error
1546 # 1546 #
1547 # substitute lexemes when in Algol mode 1547 # substitute lexemes when in Algol mode
1548 if self.algol_publication_mode: 1548 if self.algol_publication_mode:
1549 if value == '#': 1549 if value == '#':
1550 value = u'≠' 1550 value = '≠'
1551 elif value == '<=': 1551 elif value == '<=':
1552 value = u'≤' 1552 value = '≤'
1553 elif value == '>=': 1553 elif value == '>=':
1554 value = u'≥' 1554 value = '≥'
1555 elif value == '==': 1555 elif value == '==':
1556 value = u'≡' 1556 value = '≡'
1557 elif value == '*.': 1557 elif value == '*.':
1558 value = u'•' 1558 value = '•'
1559 1559
1560 # return result 1560 # return result
1561 yield index, token, value 1561 yield index, token, value

eric ide

mercurial