ThirdParty/Pygments/pygments/lexers/algebra.py

changeset 5713
6762afd9f963
parent 4697
c2e9bf425554
equal deleted inserted replaced
5712:f0d08bdeacf4 5713:6762afd9f963
3 pygments.lexers.algebra 3 pygments.lexers.algebra
4 ~~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for computer algebra systems. 6 Lexers for computer algebra systems.
7 7
8 :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2017 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
102 (r'([a-zA-Z]+[A-Za-z0-9]*`)', Name.Namespace), 102 (r'([a-zA-Z]+[A-Za-z0-9]*`)', Name.Namespace),
103 (r'([A-Za-z0-9]*_+[A-Za-z0-9]*)', Name.Variable), 103 (r'([A-Za-z0-9]*_+[A-Za-z0-9]*)', Name.Variable),
104 (r'#\d*', Name.Variable), 104 (r'#\d*', Name.Variable),
105 (r'([a-zA-Z]+[a-zA-Z0-9]*)', Name), 105 (r'([a-zA-Z]+[a-zA-Z0-9]*)', Name),
106 106
107 (r'-?[0-9]+\.[0-9]*', Number.Float), 107 (r'-?\d+\.\d*', Number.Float),
108 (r'-?[0-9]*\.[0-9]+', Number.Float), 108 (r'-?\d*\.\d+', Number.Float),
109 (r'-?[0-9]+', Number.Integer), 109 (r'-?\d+', Number.Integer),
110 110
111 (words(operators), Operator), 111 (words(operators), Operator),
112 (words(punctuation), Punctuation), 112 (words(punctuation), Punctuation),
113 (r'".*?"', String), 113 (r'".*?"', String),
114 (r'\s+', Text.Whitespace), 114 (r'\s+', Text.Whitespace),

eric ide

mercurial