Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
pygments /
lexers /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
8.53
KB
-rw-r--r--
2014-11-10 20:17
__init__.pyc
8.81
KB
-rw-r--r--
2016-08-02 10:51
__init__.pyo
8.81
KB
-rw-r--r--
2016-08-02 10:51
_asy_builtins.py
26.68
KB
-rw-r--r--
2014-11-10 20:17
_asy_builtins.pyc
33.16
KB
-rw-r--r--
2016-08-02 10:51
_asy_builtins.pyo
33.16
KB
-rw-r--r--
2016-08-02 10:51
_cl_builtins.py
13.72
KB
-rw-r--r--
2014-11-10 20:17
_cl_builtins.pyc
25.61
KB
-rw-r--r--
2016-08-02 10:51
_cl_builtins.pyo
25.61
KB
-rw-r--r--
2016-08-02 10:51
_cocoa_builtins.py
38.79
KB
-rw-r--r--
2014-11-10 20:17
_cocoa_builtins.pyc
45.31
KB
-rw-r--r--
2016-08-02 10:51
_cocoa_builtins.pyo
45.31
KB
-rw-r--r--
2016-08-02 10:51
_lasso_builtins.py
127.85
KB
-rw-r--r--
2014-11-10 20:17
_lasso_builtins.pyc
118.34
KB
-rw-r--r--
2016-08-02 10:51
_lasso_builtins.pyo
118.34
KB
-rw-r--r--
2016-08-02 10:51
_lua_builtins.py
6.8
KB
-rw-r--r--
2014-11-10 20:17
_lua_builtins.pyc
8.99
KB
-rw-r--r--
2016-08-02 10:51
_lua_builtins.pyo
8.99
KB
-rw-r--r--
2016-08-02 10:51
_mapping.py
44.55
KB
-rw-r--r--
2014-11-10 20:17
_mapping.pyc
64.94
KB
-rw-r--r--
2016-08-02 10:51
_mapping.pyo
64.94
KB
-rw-r--r--
2016-08-02 10:51
_mql_builtins.py
24.16
KB
-rw-r--r--
2014-11-10 20:17
_mql_builtins.pyc
29.02
KB
-rw-r--r--
2016-08-02 10:51
_mql_builtins.pyo
29.02
KB
-rw-r--r--
2016-08-02 10:51
_openedge_builtins.py
47.23
KB
-rw-r--r--
2014-11-10 20:17
_openedge_builtins.pyc
80.16
KB
-rw-r--r--
2016-08-02 10:51
_openedge_builtins.pyo
80.16
KB
-rw-r--r--
2016-08-02 10:51
_php_builtins.py
150.75
KB
-rw-r--r--
2014-11-10 20:17
_php_builtins.pyc
135.12
KB
-rw-r--r--
2016-08-02 10:51
_php_builtins.pyo
135.12
KB
-rw-r--r--
2016-08-02 10:51
_postgres_builtins.py
10.95
KB
-rw-r--r--
2014-11-10 20:17
_postgres_builtins.pyc
13.16
KB
-rw-r--r--
2016-08-02 10:51
_postgres_builtins.pyo
13.16
KB
-rw-r--r--
2016-08-02 10:51
_scilab_builtins.py
51.18
KB
-rw-r--r--
2014-11-10 20:17
_scilab_builtins.pyc
72.28
KB
-rw-r--r--
2016-08-02 10:51
_scilab_builtins.pyo
72.28
KB
-rw-r--r--
2016-08-02 10:51
_sourcemod_builtins.py
26.48
KB
-rw-r--r--
2014-11-10 20:17
_sourcemod_builtins.pyc
31.44
KB
-rw-r--r--
2016-08-02 10:51
_sourcemod_builtins.pyo
31.44
KB
-rw-r--r--
2016-08-02 10:51
_stan_builtins.py
9.16
KB
-rw-r--r--
2015-01-20 07:56
_stan_builtins.pyc
11.26
KB
-rw-r--r--
2016-08-02 10:51
_stan_builtins.pyo
11.26
KB
-rw-r--r--
2016-08-02 10:51
_vim_builtins.py
55.75
KB
-rw-r--r--
2014-11-10 20:17
_vim_builtins.pyc
63.17
KB
-rw-r--r--
2016-08-02 10:51
_vim_builtins.pyo
63.17
KB
-rw-r--r--
2016-08-02 10:51
actionscript.py
10.92
KB
-rw-r--r--
2014-11-10 20:17
actionscript.pyc
11.51
KB
-rw-r--r--
2016-08-02 10:51
actionscript.pyo
11.51
KB
-rw-r--r--
2016-08-02 10:51
agile.py
900
B
-rw-r--r--
2014-11-10 20:17
agile.pyc
1.4
KB
-rw-r--r--
2016-08-02 10:51
agile.pyo
1.4
KB
-rw-r--r--
2016-08-02 10:51
algebra.py
6.02
KB
-rw-r--r--
2014-11-10 20:17
algebra.pyc
6.75
KB
-rw-r--r--
2016-08-02 10:51
algebra.pyo
6.75
KB
-rw-r--r--
2016-08-02 10:51
ambient.py
2.5
KB
-rw-r--r--
2014-11-10 20:17
ambient.pyc
2.87
KB
-rw-r--r--
2016-08-02 10:51
ambient.pyo
2.87
KB
-rw-r--r--
2016-08-02 10:51
apl.py
3.09
KB
-rw-r--r--
2014-11-10 20:17
apl.pyc
1.99
KB
-rw-r--r--
2016-08-02 10:51
apl.pyo
1.99
KB
-rw-r--r--
2016-08-02 10:51
asm.py
14.25
KB
-rw-r--r--
2014-11-10 20:17
asm.pyc
12.46
KB
-rw-r--r--
2016-08-02 10:51
asm.pyo
12.46
KB
-rw-r--r--
2016-08-02 10:51
automation.py
19.17
KB
-rw-r--r--
2014-11-10 20:17
automation.pyc
16.58
KB
-rw-r--r--
2016-08-02 10:51
automation.pyo
16.58
KB
-rw-r--r--
2016-08-02 10:51
basic.py
19.83
KB
-rw-r--r--
2014-11-10 20:17
basic.pyc
17.8
KB
-rw-r--r--
2016-08-02 10:51
basic.pyo
17.8
KB
-rw-r--r--
2016-08-02 10:51
business.py
26.07
KB
-rw-r--r--
2014-11-10 20:17
business.pyc
24.59
KB
-rw-r--r--
2016-08-02 10:51
business.pyo
24.59
KB
-rw-r--r--
2016-08-02 10:51
c_cpp.py
9.19
KB
-rw-r--r--
2014-11-10 20:17
c_cpp.pyc
8.84
KB
-rw-r--r--
2016-08-02 10:51
c_cpp.pyo
8.84
KB
-rw-r--r--
2016-08-02 10:51
c_like.py
15.8
KB
-rw-r--r--
2014-11-10 20:17
c_like.pyc
17.26
KB
-rw-r--r--
2016-08-02 10:51
c_like.pyo
17.26
KB
-rw-r--r--
2016-08-02 10:51
chapel.py
3.26
KB
-rw-r--r--
2014-11-10 20:17
chapel.pyc
3.22
KB
-rw-r--r--
2016-08-02 10:51
chapel.pyo
3.22
KB
-rw-r--r--
2016-08-02 10:51
compiled.py
1.3
KB
-rw-r--r--
2014-11-10 20:17
compiled.pyc
2.07
KB
-rw-r--r--
2016-08-02 10:51
compiled.pyo
2.07
KB
-rw-r--r--
2016-08-02 10:51
configs.py
19.58
KB
-rw-r--r--
2014-11-10 20:17
configs.pyc
19.19
KB
-rw-r--r--
2016-08-02 10:51
configs.pyo
19.19
KB
-rw-r--r--
2016-08-02 10:51
console.py
4.02
KB
-rw-r--r--
2014-11-14 18:47
console.pyc
3.85
KB
-rw-r--r--
2016-08-02 10:51
console.pyo
3.85
KB
-rw-r--r--
2016-08-02 10:51
css.py
23.58
KB
-rw-r--r--
2014-11-10 20:17
css.pyc
28.89
KB
-rw-r--r--
2016-08-02 10:51
css.pyo
28.89
KB
-rw-r--r--
2016-08-02 10:51
d.py
9.31
KB
-rw-r--r--
2014-11-10 20:17
d.pyc
7.94
KB
-rw-r--r--
2016-08-02 10:51
d.pyo
7.94
KB
-rw-r--r--
2016-08-02 10:51
dalvik.py
4.32
KB
-rw-r--r--
2014-11-10 20:17
dalvik.pyc
3.71
KB
-rw-r--r--
2016-08-02 10:51
dalvik.pyo
3.71
KB
-rw-r--r--
2016-08-02 10:51
data.py
17.85
KB
-rw-r--r--
2015-01-20 07:47
data.pyc
11.92
KB
-rw-r--r--
2016-08-02 10:51
data.pyo
11.92
KB
-rw-r--r--
2016-08-02 10:51
diff.py
3.17
KB
-rw-r--r--
2014-11-10 20:17
diff.pyc
3.26
KB
-rw-r--r--
2016-08-02 10:51
diff.pyo
3.26
KB
-rw-r--r--
2016-08-02 10:51
dotnet.py
26.66
KB
-rw-r--r--
2014-11-14 18:47
dotnet.pyc
22.08
KB
-rw-r--r--
2016-08-02 10:51
dotnet.pyo
22.08
KB
-rw-r--r--
2016-08-02 10:51
dsls.py
18.33
KB
-rw-r--r--
2014-11-10 20:17
dsls.pyc
17.78
KB
-rw-r--r--
2016-08-02 10:51
dsls.pyo
17.78
KB
-rw-r--r--
2016-08-02 10:51
dylan.py
10.18
KB
-rw-r--r--
2014-11-10 20:17
dylan.pyc
11.31
KB
-rw-r--r--
2016-08-02 10:51
dylan.pyo
11.31
KB
-rw-r--r--
2016-08-02 10:51
ecl.py
5.74
KB
-rw-r--r--
2014-11-10 20:17
ecl.pyc
6.76
KB
-rw-r--r--
2016-08-02 10:51
ecl.pyo
6.76
KB
-rw-r--r--
2016-08-02 10:51
eiffel.py
2.42
KB
-rw-r--r--
2014-11-10 20:17
eiffel.pyc
2.96
KB
-rw-r--r--
2016-08-02 10:51
eiffel.pyo
2.96
KB
-rw-r--r--
2016-08-02 10:51
erlang.py
17.77
KB
-rw-r--r--
2014-11-10 20:17
erlang.pyc
16.98
KB
-rw-r--r--
2016-08-02 10:51
erlang.pyo
16.98
KB
-rw-r--r--
2016-08-02 10:51
esoteric.py
3.38
KB
-rw-r--r--
2014-11-10 20:17
esoteric.pyc
3.46
KB
-rw-r--r--
2016-08-02 10:51
esoteric.pyo
3.46
KB
-rw-r--r--
2016-08-02 10:51
factor.py
17.45
KB
-rw-r--r--
2014-11-10 20:17
factor.pyc
23.89
KB
-rw-r--r--
2016-08-02 10:51
factor.pyo
23.89
KB
-rw-r--r--
2016-08-02 10:51
fantom.py
9.75
KB
-rw-r--r--
2014-11-10 20:17
fantom.pyc
5.9
KB
-rw-r--r--
2016-08-02 10:51
fantom.pyo
5.9
KB
-rw-r--r--
2016-08-02 10:51
felix.py
9.19
KB
-rw-r--r--
2014-11-10 20:17
felix.pyc
7.94
KB
-rw-r--r--
2016-08-02 10:51
felix.pyo
7.94
KB
-rw-r--r--
2016-08-02 10:51
fortran.py
8.26
KB
-rw-r--r--
2014-11-10 20:17
fortran.pyc
9.78
KB
-rw-r--r--
2016-08-02 10:51
fortran.pyo
9.78
KB
-rw-r--r--
2016-08-02 10:51
foxpro.py
25.62
KB
-rw-r--r--
2014-11-10 20:17
foxpro.pyc
19.9
KB
-rw-r--r--
2016-08-02 10:51
foxpro.pyo
19.9
KB
-rw-r--r--
2016-08-02 10:51
functional.py
687
B
-rw-r--r--
2014-11-10 20:17
functional.pyc
1.05
KB
-rw-r--r--
2016-08-02 10:51
functional.pyo
1.05
KB
-rw-r--r--
2016-08-02 10:51
go.py
3.61
KB
-rw-r--r--
2014-11-10 20:17
go.pyc
3.47
KB
-rw-r--r--
2016-08-02 10:51
go.pyo
3.47
KB
-rw-r--r--
2016-08-02 10:51
graph.py
2.24
KB
-rw-r--r--
2014-11-10 20:17
graph.pyc
2.29
KB
-rw-r--r--
2016-08-02 10:51
graph.pyo
2.29
KB
-rw-r--r--
2016-08-02 10:51
graphics.py
25.23
KB
-rw-r--r--
2014-11-10 20:17
graphics.pyc
24.04
KB
-rw-r--r--
2016-08-02 10:51
graphics.pyo
24.04
KB
-rw-r--r--
2016-08-02 10:51
haskell.py
30.28
KB
-rw-r--r--
2014-11-10 20:17
haskell.pyc
23.78
KB
-rw-r--r--
2016-08-02 10:51
haskell.pyo
23.78
KB
-rw-r--r--
2016-08-02 10:51
haxe.py
30.23
KB
-rw-r--r--
2014-11-10 20:17
haxe.pyc
18.45
KB
-rw-r--r--
2016-08-02 10:51
haxe.pyo
18.45
KB
-rw-r--r--
2016-08-02 10:51
hdl.py
17.82
KB
-rw-r--r--
2014-11-10 20:17
hdl.pyc
20.02
KB
-rw-r--r--
2016-08-02 10:51
hdl.pyo
20.02
KB
-rw-r--r--
2016-08-02 10:51
html.py
18.18
KB
-rw-r--r--
2014-11-10 20:17
html.pyc
14.82
KB
-rw-r--r--
2016-08-02 10:51
html.pyo
14.82
KB
-rw-r--r--
2016-08-02 10:51
idl.py
14.19
KB
-rw-r--r--
2014-11-10 20:17
idl.pyc
18.69
KB
-rw-r--r--
2016-08-02 10:51
idl.pyo
18.69
KB
-rw-r--r--
2016-08-02 10:51
igor.py
16.47
KB
-rw-r--r--
2014-11-10 20:17
igor.pyc
20.75
KB
-rw-r--r--
2016-08-02 10:51
igor.pyo
20.75
KB
-rw-r--r--
2016-08-02 10:51
inferno.py
3.04
KB
-rw-r--r--
2014-11-10 20:17
inferno.pyc
2.92
KB
-rw-r--r--
2016-08-02 10:51
inferno.pyo
2.92
KB
-rw-r--r--
2016-08-02 10:51
installers.py
12.56
KB
-rw-r--r--
2014-11-10 20:17
installers.pyc
10.6
KB
-rw-r--r--
2016-08-02 10:51
installers.pyo
10.6
KB
-rw-r--r--
2016-08-02 10:51
int_fiction.py
54.42
KB
-rw-r--r--
2014-11-10 20:17
int_fiction.pyc
35.32
KB
-rw-r--r--
2016-08-02 10:51
int_fiction.pyo
35.32
KB
-rw-r--r--
2016-08-02 10:51
iolang.py
1.86
KB
-rw-r--r--
2014-11-10 20:17
iolang.pyc
1.94
KB
-rw-r--r--
2016-08-02 10:51
iolang.pyo
1.94
KB
-rw-r--r--
2016-08-02 10:51
javascript.py
46.41
KB
-rw-r--r--
2014-11-14 18:47
javascript.pyc
31.97
KB
-rw-r--r--
2016-08-02 10:51
javascript.pyo
31.97
KB
-rw-r--r--
2016-08-02 10:51
julia.py
6.25
KB
-rw-r--r--
2014-11-10 20:17
julia.pyc
5.66
KB
-rw-r--r--
2016-08-02 10:51
julia.pyo
5.66
KB
-rw-r--r--
2016-08-02 10:51
jvm.py
64.51
KB
-rw-r--r--
2014-11-10 20:17
jvm.pyc
50.54
KB
-rw-r--r--
2016-08-02 10:51
jvm.pyo
50.54
KB
-rw-r--r--
2016-08-02 10:51
lisp.py
76.79
KB
-rw-r--r--
2014-11-10 20:17
lisp.pyc
117.79
KB
-rw-r--r--
2016-08-02 10:51
lisp.pyo
117.79
KB
-rw-r--r--
2016-08-02 10:51
make.py
7.08
KB
-rw-r--r--
2014-11-10 20:17
make.pyc
5.32
KB
-rw-r--r--
2016-08-02 10:51
make.pyo
5.32
KB
-rw-r--r--
2016-08-02 10:51
markup.py
16.49
KB
-rw-r--r--
2014-11-10 20:17
markup.pyc
14.96
KB
-rw-r--r--
2016-08-02 10:51
markup.pyo
14.96
KB
-rw-r--r--
2016-08-02 10:51
math.py
700
B
-rw-r--r--
2014-11-10 20:17
math.pyc
1.09
KB
-rw-r--r--
2016-08-02 10:51
math.pyo
1.09
KB
-rw-r--r--
2016-08-02 10:51
matlab.py
28.46
KB
-rw-r--r--
2014-11-10 20:17
matlab.pyc
32.44
KB
-rw-r--r--
2016-08-02 10:51
matlab.pyo
32.44
KB
-rw-r--r--
2016-08-02 10:51
ml.py
27.24
KB
-rw-r--r--
2014-11-10 20:17
ml.pyc
15.28
KB
-rw-r--r--
2016-08-02 10:51
ml.pyo
15.28
KB
-rw-r--r--
2016-08-02 10:51
modeling.py
12.44
KB
-rw-r--r--
2015-01-20 07:56
modeling.pyc
11.1
KB
-rw-r--r--
2016-08-02 10:51
modeling.pyo
11.1
KB
-rw-r--r--
2016-08-02 10:51
nimrod.py
4.99
KB
-rw-r--r--
2014-11-10 20:17
nimrod.pyc
4.65
KB
-rw-r--r--
2016-08-02 10:51
nimrod.pyo
4.65
KB
-rw-r--r--
2016-08-02 10:51
nit.py
2.68
KB
-rw-r--r--
2014-11-10 20:17
nit.pyc
3.05
KB
-rw-r--r--
2016-08-02 10:51
nit.pyo
3.05
KB
-rw-r--r--
2016-08-02 10:51
nix.py
3.94
KB
-rw-r--r--
2014-11-10 20:17
nix.pyc
4.28
KB
-rw-r--r--
2016-08-02 10:51
nix.pyo
4.28
KB
-rw-r--r--
2016-08-02 10:51
objective.py
22.03
KB
-rw-r--r--
2014-11-14 08:55
objective.pyc
19.77
KB
-rw-r--r--
2016-08-02 10:51
objective.pyo
19.77
KB
-rw-r--r--
2016-08-02 10:51
ooc.py
2.93
KB
-rw-r--r--
2014-11-10 20:17
ooc.pyc
3.03
KB
-rw-r--r--
2016-08-02 10:51
ooc.pyo
3.03
KB
-rw-r--r--
2016-08-02 10:51
other.py
1.68
KB
-rw-r--r--
2014-11-10 20:17
other.pyc
2.64
KB
-rw-r--r--
2016-08-02 10:51
other.pyo
2.64
KB
-rw-r--r--
2016-08-02 10:51
parsers.py
26.94
KB
-rw-r--r--
2014-11-10 20:17
parsers.pyc
23.14
KB
-rw-r--r--
2016-08-02 10:51
parsers.pyo
23.14
KB
-rw-r--r--
2016-08-02 10:51
pascal.py
39.47
KB
-rw-r--r--
2014-11-10 20:17
pascal.pyc
35.67
KB
-rw-r--r--
2016-08-02 10:51
pascal.pyo
35.67
KB
-rw-r--r--
2016-08-02 10:51
pawn.py
7.9
KB
-rw-r--r--
2014-11-10 20:17
pawn.pyc
7.19
KB
-rw-r--r--
2016-08-02 10:51
pawn.pyo
7.19
KB
-rw-r--r--
2016-08-02 10:51
perl.py
30.82
KB
-rw-r--r--
2014-11-10 20:17
perl.pyc
30.63
KB
-rw-r--r--
2016-08-02 10:51
perl.pyo
30.63
KB
-rw-r--r--
2016-08-02 10:51
php.py
9.54
KB
-rw-r--r--
2014-11-10 20:17
php.pyc
8.6
KB
-rw-r--r--
2016-08-02 10:51
php.pyo
8.6
KB
-rw-r--r--
2016-08-02 10:51
prolog.py
11.76
KB
-rw-r--r--
2014-11-10 20:17
prolog.pyc
8.03
KB
-rw-r--r--
2016-08-02 10:51
prolog.pyo
8.03
KB
-rw-r--r--
2016-08-02 10:51
python.py
35.37
KB
-rw-r--r--
2015-01-20 07:56
python.pyc
35.33
KB
-rw-r--r--
2016-08-02 10:51
python.pyo
35.33
KB
-rw-r--r--
2016-08-02 10:51
r.py
23.2
KB
-rw-r--r--
2014-11-10 20:17
r.pyc
33.3
KB
-rw-r--r--
2016-08-02 10:51
r.pyo
33.3
KB
-rw-r--r--
2016-08-02 10:51
rdf.py
3.7
KB
-rw-r--r--
2014-11-10 20:17
rdf.pyc
3.29
KB
-rw-r--r--
2016-08-02 10:51
rdf.pyo
3.29
KB
-rw-r--r--
2016-08-02 10:51
rebol.py
18.18
KB
-rw-r--r--
2014-11-10 20:17
rebol.pyc
13.49
KB
-rw-r--r--
2016-08-02 10:51
rebol.pyo
13.49
KB
-rw-r--r--
2016-08-02 10:51
resource.py
2.84
KB
-rw-r--r--
2014-11-10 20:17
resource.pyc
2.85
KB
-rw-r--r--
2016-08-02 10:51
resource.pyo
2.85
KB
-rw-r--r--
2016-08-02 10:51
robotframework.py
18.2
KB
-rw-r--r--
2014-11-10 20:17
robotframework.pyc
25.04
KB
-rw-r--r--
2016-08-02 10:51
robotframework.pyo
25.04
KB
-rw-r--r--
2016-08-02 10:51
ruby.py
21.62
KB
-rw-r--r--
2014-11-10 20:17
ruby.pyc
17.14
KB
-rw-r--r--
2016-08-02 10:51
ruby.pyo
17.14
KB
-rw-r--r--
2016-08-02 10:51
rust.py
7.04
KB
-rw-r--r--
2014-11-10 20:17
rust.pyc
6.76
KB
-rw-r--r--
2016-08-02 10:51
rust.pyo
6.76
KB
-rw-r--r--
2016-08-02 10:51
scripting.py
54.28
KB
-rw-r--r--
2014-11-10 20:17
scripting.pyc
59.24
KB
-rw-r--r--
2016-08-02 10:51
scripting.pyo
59.24
KB
-rw-r--r--
2016-08-02 10:51
shell.py
15.42
KB
-rw-r--r--
2014-11-10 20:17
shell.pyc
12.79
KB
-rw-r--r--
2016-08-02 10:51
shell.pyo
12.79
KB
-rw-r--r--
2016-08-02 10:51
smalltalk.py
7.05
KB
-rw-r--r--
2014-11-10 20:17
smalltalk.pyc
5.24
KB
-rw-r--r--
2016-08-02 10:51
smalltalk.pyo
5.24
KB
-rw-r--r--
2016-08-02 10:51
snobol.py
2.69
KB
-rw-r--r--
2014-11-10 20:17
snobol.pyc
2.27
KB
-rw-r--r--
2016-08-02 10:51
snobol.pyo
2.27
KB
-rw-r--r--
2016-08-02 10:51
special.py
3
KB
-rw-r--r--
2014-11-10 20:17
special.pyc
3.66
KB
-rw-r--r--
2016-08-02 10:51
special.pyo
3.66
KB
-rw-r--r--
2016-08-02 10:51
sql.py
25.32
KB
-rw-r--r--
2014-11-10 20:17
sql.pyc
26.32
KB
-rw-r--r--
2016-08-02 10:51
sql.pyo
26.26
KB
-rw-r--r--
2016-08-02 10:51
tcl.py
5.27
KB
-rw-r--r--
2014-11-10 20:17
tcl.pyc
5.27
KB
-rw-r--r--
2016-08-02 10:51
tcl.pyo
5.27
KB
-rw-r--r--
2016-08-02 10:51
templates.py
68.1
KB
-rw-r--r--
2014-11-14 18:47
templates.pyc
71.67
KB
-rw-r--r--
2016-08-02 10:51
templates.pyo
71.67
KB
-rw-r--r--
2016-08-02 10:51
testing.py
8.5
KB
-rw-r--r--
2014-11-10 20:17
testing.pyc
7.25
KB
-rw-r--r--
2016-08-02 10:51
testing.pyo
7.25
KB
-rw-r--r--
2016-08-02 10:51
text.py
977
B
-rw-r--r--
2014-11-10 20:17
text.pyc
1.54
KB
-rw-r--r--
2016-08-02 10:51
text.pyo
1.54
KB
-rw-r--r--
2016-08-02 10:51
textedit.py
5.92
KB
-rw-r--r--
2014-11-10 20:17
textedit.pyc
5.79
KB
-rw-r--r--
2016-08-02 10:51
textedit.pyo
5.79
KB
-rw-r--r--
2016-08-02 10:51
textfmts.py
10.39
KB
-rw-r--r--
2015-01-20 07:56
textfmts.pyc
8.15
KB
-rw-r--r--
2016-08-02 10:51
textfmts.pyo
8.15
KB
-rw-r--r--
2016-08-02 10:51
theorem.py
19.14
KB
-rw-r--r--
2015-01-20 07:56
theorem.pyc
21.08
KB
-rw-r--r--
2016-08-02 10:51
theorem.pyo
21.08
KB
-rw-r--r--
2016-08-02 10:51
urbi.py
5.62
KB
-rw-r--r--
2014-11-10 20:17
urbi.pyc
5.6
KB
-rw-r--r--
2016-08-02 10:51
urbi.pyo
5.6
KB
-rw-r--r--
2016-08-02 10:51
web.py
918
B
-rw-r--r--
2014-11-10 20:17
web.pyc
1.4
KB
-rw-r--r--
2016-08-02 10:51
web.pyo
1.4
KB
-rw-r--r--
2016-08-02 10:51
webmisc.py
35.06
KB
-rw-r--r--
2014-11-10 20:17
webmisc.pyc
26.94
KB
-rw-r--r--
2016-08-02 10:51
webmisc.pyo
26.94
KB
-rw-r--r--
2016-08-02 10:51
Save
Rename
# -*- coding: utf-8 -*- """ pygments.lexers.python ~~~~~~~~~~~~~~~~~~~~~~ Lexers for Python and related languages. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, \ default, words, combined, do_insertions from pygments.util import get_bool_opt, shebang_matches from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation, Generic, Other, Error from pygments import unistring as uni __all__ = ['PythonLexer', 'PythonConsoleLexer', 'PythonTracebackLexer', 'Python3Lexer', 'Python3TracebackLexer', 'CythonLexer', 'DgLexer', 'NumPyLexer'] line_re = re.compile('.*?\n') class PythonLexer(RegexLexer): """ For `Python <http://www.python.org>`_ source code. """ name = 'Python' aliases = ['python', 'py', 'sage'] filenames = ['*.py', '*.pyw', '*.sc', 'SConstruct', 'SConscript', '*.tac', '*.sage'] mimetypes = ['text/x-python', 'application/x-python'] tokens = { 'root': [ (r'\n', Text), (r'^(\s*)([rRuU]{,2}"""(?:.|\n)*?""")', bygroups(Text, String.Doc)), (r"^(\s*)([rRuU]{,2}'''(?:.|\n)*?''')", bygroups(Text, String.Doc)), (r'[^\S\n]+', Text), (r'#.*$', Comment), (r'[]{}:(),;[]', Punctuation), (r'\\\n', Text), (r'\\', Text), (r'(in|is|and|or|not)\b', Operator.Word), (r'!=|==|<<|>>|[-~+/*%=<>&^|.]', Operator), include('keywords'), (r'(def)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'funcname'), (r'(class)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'classname'), (r'(from)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text), 'fromimport'), (r'(import)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text), 'import'), include('builtins'), include('backtick'), ('(?:[rR]|[uU][rR]|[rR][uU])"""', String, 'tdqs'), ("(?:[rR]|[uU][rR]|[rR][uU])'''", String, 'tsqs'), ('(?:[rR]|[uU][rR]|[rR][uU])"', String, 'dqs'), ("(?:[rR]|[uU][rR]|[rR][uU])'", String, 'sqs'), ('[uU]?"""', String, combined('stringescape', 'tdqs')), ("[uU]?'''", String, combined('stringescape', 'tsqs')), ('[uU]?"', String, combined('stringescape', 'dqs')), ("[uU]?'", String, combined('stringescape', 'sqs')), include('name'), include('numbers'), ], 'keywords': [ (words(( 'assert', 'break', 'continue', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'global', 'if', 'lambda', 'pass', 'print', 'raise', 'return', 'try', 'while', 'yield', 'yield from', 'as', 'with'), suffix=r'\b'), Keyword), ], 'builtins': [ (words(( '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin', 'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', 'exit', 'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'hex', 'id', 'input', 'int', 'intern', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals', 'long', 'map', 'max', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range', 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', 'vars', 'xrange', 'zip'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Builtin), (r'(?<!\.)(self|None|Ellipsis|NotImplemented|False|True' r')\b', Name.Builtin.Pseudo), (words(( 'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'DeprecationWarning', 'EOFError', 'EnvironmentError', 'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'OverflowWarning', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'VMSError', 'Warning', 'WindowsError', 'ZeroDivisionError'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Exception), ], 'numbers': [ (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?', Number.Float), (r'\d+[eE][+-]?[0-9]+j?', Number.Float), (r'0[0-7]+j?', Number.Oct), (r'0[bB][01]+', Number.Bin), (r'0[xX][a-fA-F0-9]+', Number.Hex), (r'\d+L', Number.Integer.Long), (r'\d+j?', Number.Integer) ], 'backtick': [ ('`.*?`', String.Backtick), ], 'name': [ (r'@[\w.]+', Name.Decorator), ('[a-zA-Z_]\w*', Name), ], 'funcname': [ ('[a-zA-Z_]\w*', Name.Function, '#pop') ], 'classname': [ ('[a-zA-Z_]\w*', Name.Class, '#pop') ], 'import': [ (r'(?:[ \t]|\\\n)+', Text), (r'as\b', Keyword.Namespace), (r',', Operator), (r'[a-zA-Z_][\w.]*', Name.Namespace), default('#pop') # all else: go back ], 'fromimport': [ (r'(?:[ \t]|\\\n)+', Text), (r'import\b', Keyword.Namespace, '#pop'), # if None occurs here, it's "raise x from None", since None can # never be a module name (r'None\b', Name.Builtin.Pseudo, '#pop'), # sadly, in "raise x from y" y will be highlighted as namespace too (r'[a-zA-Z_.][\w.]*', Name.Namespace), # anything else here also means "raise x from y" and is therefore # not an error default('#pop'), ], 'stringescape': [ (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|' r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape) ], 'strings': [ (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?' '[hlL]?[diouxXeEfFgGcrs%]', String.Interpol), (r'[^\\\'"%\n]+', String), # quotes, percents and backslashes must be parsed one at a time (r'[\'"\\]', String), # unhandled string formatting sign (r'%', String) # newlines are an error (use "nl" state) ], 'nl': [ (r'\n', String) ], 'dqs': [ (r'"', String, '#pop'), (r'\\\\|\\"|\\\n', String.Escape), # included here for raw strings include('strings') ], 'sqs': [ (r"'", String, '#pop'), (r"\\\\|\\'|\\\n", String.Escape), # included here for raw strings include('strings') ], 'tdqs': [ (r'"""', String, '#pop'), include('strings'), include('nl') ], 'tsqs': [ (r"'''", String, '#pop'), include('strings'), include('nl') ], } def analyse_text(text): return shebang_matches(text, r'pythonw?(2(\.\d)?)?') or \ 'import ' in text[:1000] class Python3Lexer(RegexLexer): """ For `Python <http://www.python.org>`_ source code (version 3.0). .. versionadded:: 0.10 """ name = 'Python 3' aliases = ['python3', 'py3'] filenames = [] # Nothing until Python 3 gets widespread mimetypes = ['text/x-python3', 'application/x-python3'] flags = re.MULTILINE | re.UNICODE uni_name = "[%s][%s]*" % (uni.xid_start, uni.xid_continue) tokens = PythonLexer.tokens.copy() tokens['keywords'] = [ (words(( 'assert', 'break', 'continue', 'del', 'elif', 'else', 'except', 'finally', 'for', 'global', 'if', 'lambda', 'pass', 'raise', 'nonlocal', 'return', 'try', 'while', 'yield', 'yield from', 'as', 'with', 'True', 'False', 'None'), suffix=r'\b'), Keyword), ] tokens['builtins'] = [ (words(( '__import__', 'abs', 'all', 'any', 'bin', 'bool', 'bytearray', 'bytes', 'chr', 'classmethod', 'cmp', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Builtin), (r'(?<!\.)(self|Ellipsis|NotImplemented)\b', Name.Builtin.Pseudo), (words(( 'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BufferError', 'BytesWarning', 'DeprecationWarning', 'EOFError', 'EnvironmentError', 'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'VMSError', 'Warning', 'WindowsError', 'ZeroDivisionError', # new builtin exceptions from PEP 3151 'BlockingIOError', 'ChildProcessError', 'ConnectionError', 'BrokenPipeError', 'ConnectionAbortedError', 'ConnectionRefusedError', 'ConnectionResetError', 'FileExistsError', 'FileNotFoundError', 'InterruptedError', 'IsADirectoryError', 'NotADirectoryError', 'PermissionError', 'ProcessLookupError', 'TimeoutError'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Exception), ] tokens['numbers'] = [ (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float), (r'0[oO][0-7]+', Number.Oct), (r'0[bB][01]+', Number.Bin), (r'0[xX][a-fA-F0-9]+', Number.Hex), (r'\d+', Number.Integer) ] tokens['backtick'] = [] tokens['name'] = [ (r'@\w+', Name.Decorator), (uni_name, Name), ] tokens['funcname'] = [ (uni_name, Name.Function, '#pop') ] tokens['classname'] = [ (uni_name, Name.Class, '#pop') ] tokens['import'] = [ (r'(\s+)(as)(\s+)', bygroups(Text, Keyword, Text)), (r'\.', Name.Namespace), (uni_name, Name.Namespace), (r'(\s*)(,)(\s*)', bygroups(Text, Operator, Text)), default('#pop') # all else: go back ] tokens['fromimport'] = [ (r'(\s+)(import)\b', bygroups(Text, Keyword), '#pop'), (r'\.', Name.Namespace), (uni_name, Name.Namespace), default('#pop'), ] # don't highlight "%s" substitutions tokens['strings'] = [ (r'[^\\\'"%\n]+', String), # quotes, percents and backslashes must be parsed one at a time (r'[\'"\\]', String), # unhandled string formatting sign (r'%', String) # newlines are an error (use "nl" state) ] def analyse_text(text): return shebang_matches(text, r'pythonw?3(\.\d)?') class PythonConsoleLexer(Lexer): """ For Python console output or doctests, such as: .. sourcecode:: pycon >>> a = 'foo' >>> print a foo >>> 1 / 0 Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: integer division or modulo by zero Additional options: `python3` Use Python 3 lexer for code. Default is ``False``. .. versionadded:: 1.0 """ name = 'Python console session' aliases = ['pycon'] mimetypes = ['text/x-python-doctest'] def __init__(self, **options): self.python3 = get_bool_opt(options, 'python3', False) Lexer.__init__(self, **options) def get_tokens_unprocessed(self, text): if self.python3: pylexer = Python3Lexer(**self.options) tblexer = Python3TracebackLexer(**self.options) else: pylexer = PythonLexer(**self.options) tblexer = PythonTracebackLexer(**self.options) curcode = '' insertions = [] curtb = '' tbindex = 0 tb = 0 for match in line_re.finditer(text): line = match.group() if line.startswith(u'>>> ') or line.startswith(u'... '): tb = 0 insertions.append((len(curcode), [(0, Generic.Prompt, line[:4])])) curcode += line[4:] elif line.rstrip() == u'...' and not tb: # only a new >>> prompt can end an exception block # otherwise an ellipsis in place of the traceback frames # will be mishandled insertions.append((len(curcode), [(0, Generic.Prompt, u'...')])) curcode += line[3:] else: if curcode: for item in do_insertions( insertions, pylexer.get_tokens_unprocessed(curcode)): yield item curcode = '' insertions = [] if (line.startswith(u'Traceback (most recent call last):') or re.match(u' File "[^"]+", line \\d+\\n$', line)): tb = 1 curtb = line tbindex = match.start() elif line == 'KeyboardInterrupt\n': yield match.start(), Name.Class, line elif tb: curtb += line if not (line.startswith(' ') or line.strip() == u'...'): tb = 0 for i, t, v in tblexer.get_tokens_unprocessed(curtb): yield tbindex+i, t, v curtb = '' else: yield match.start(), Generic.Output, line if curcode: for item in do_insertions(insertions, pylexer.get_tokens_unprocessed(curcode)): yield item if curtb: for i, t, v in tblexer.get_tokens_unprocessed(curtb): yield tbindex+i, t, v class PythonTracebackLexer(RegexLexer): """ For Python tracebacks. .. versionadded:: 0.7 """ name = 'Python Traceback' aliases = ['pytb'] filenames = ['*.pytb'] mimetypes = ['text/x-python-traceback'] tokens = { 'root': [ (r'^Traceback \(most recent call last\):\n', Generic.Traceback, 'intb'), # SyntaxError starts with this. (r'^(?= File "[^"]+", line \d+)', Generic.Traceback, 'intb'), (r'^.*\n', Other), ], 'intb': [ (r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)', bygroups(Text, Name.Builtin, Text, Number, Text, Name, Text)), (r'^( File )("[^"]+")(, line )(\d+)(\n)', bygroups(Text, Name.Builtin, Text, Number, Text)), (r'^( )(.+)(\n)', bygroups(Text, using(PythonLexer), Text)), (r'^([ \t]*)(\.\.\.)(\n)', bygroups(Text, Comment, Text)), # for doctests... (r'^([^:]+)(: )(.+)(\n)', bygroups(Generic.Error, Text, Name, Text), '#pop'), (r'^([a-zA-Z_]\w*)(:?\n)', bygroups(Generic.Error, Text), '#pop') ], } class Python3TracebackLexer(RegexLexer): """ For Python 3.0 tracebacks, with support for chained exceptions. .. versionadded:: 1.0 """ name = 'Python 3.0 Traceback' aliases = ['py3tb'] filenames = ['*.py3tb'] mimetypes = ['text/x-python3-traceback'] tokens = { 'root': [ (r'\n', Text), (r'^Traceback \(most recent call last\):\n', Generic.Traceback, 'intb'), (r'^During handling of the above exception, another ' r'exception occurred:\n\n', Generic.Traceback), (r'^The above exception was the direct cause of the ' r'following exception:\n\n', Generic.Traceback), (r'^(?= File "[^"]+", line \d+)', Generic.Traceback, 'intb'), ], 'intb': [ (r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)', bygroups(Text, Name.Builtin, Text, Number, Text, Name, Text)), (r'^( File )("[^"]+")(, line )(\d+)(\n)', bygroups(Text, Name.Builtin, Text, Number, Text)), (r'^( )(.+)(\n)', bygroups(Text, using(Python3Lexer), Text)), (r'^([ \t]*)(\.\.\.)(\n)', bygroups(Text, Comment, Text)), # for doctests... (r'^([^:]+)(: )(.+)(\n)', bygroups(Generic.Error, Text, Name, Text), '#pop'), (r'^([a-zA-Z_]\w*)(:?\n)', bygroups(Generic.Error, Text), '#pop') ], } class CythonLexer(RegexLexer): """ For Pyrex and `Cython <http://cython.org>`_ source code. .. versionadded:: 1.1 """ name = 'Cython' aliases = ['cython', 'pyx', 'pyrex'] filenames = ['*.pyx', '*.pxd', '*.pxi'] mimetypes = ['text/x-cython', 'application/x-cython'] tokens = { 'root': [ (r'\n', Text), (r'^(\s*)("""(?:.|\n)*?""")', bygroups(Text, String.Doc)), (r"^(\s*)('''(?:.|\n)*?''')", bygroups(Text, String.Doc)), (r'[^\S\n]+', Text), (r'#.*$', Comment), (r'[]{}:(),;[]', Punctuation), (r'\\\n', Text), (r'\\', Text), (r'(in|is|and|or|not)\b', Operator.Word), (r'(<)([a-zA-Z0-9.?]+)(>)', bygroups(Punctuation, Keyword.Type, Punctuation)), (r'!=|==|<<|>>|[-~+/*%=<>&^|.?]', Operator), (r'(from)(\d+)(<=)(\s+)(<)(\d+)(:)', bygroups(Keyword, Number.Integer, Operator, Name, Operator, Name, Punctuation)), include('keywords'), (r'(def|property)(\s+)', bygroups(Keyword, Text), 'funcname'), (r'(cp?def)(\s+)', bygroups(Keyword, Text), 'cdef'), (r'(class|struct)(\s+)', bygroups(Keyword, Text), 'classname'), (r'(from)(\s+)', bygroups(Keyword, Text), 'fromimport'), (r'(c?import)(\s+)', bygroups(Keyword, Text), 'import'), include('builtins'), include('backtick'), ('(?:[rR]|[uU][rR]|[rR][uU])"""', String, 'tdqs'), ("(?:[rR]|[uU][rR]|[rR][uU])'''", String, 'tsqs'), ('(?:[rR]|[uU][rR]|[rR][uU])"', String, 'dqs'), ("(?:[rR]|[uU][rR]|[rR][uU])'", String, 'sqs'), ('[uU]?"""', String, combined('stringescape', 'tdqs')), ("[uU]?'''", String, combined('stringescape', 'tsqs')), ('[uU]?"', String, combined('stringescape', 'dqs')), ("[uU]?'", String, combined('stringescape', 'sqs')), include('name'), include('numbers'), ], 'keywords': [ (words(( 'assert', 'break', 'by', 'continue', 'ctypedef', 'del', 'elif', 'else', 'except', 'except?', 'exec', 'finally', 'for', 'gil', 'global', 'if', 'include', 'lambda', 'nogil', 'pass', 'print', 'raise', 'return', 'try', 'while', 'yield', 'as', 'with'), suffix=r'\b'), Keyword), (r'(DEF|IF|ELIF|ELSE)\b', Comment.Preproc), ], 'builtins': [ (words(( '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin', 'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', 'exit', 'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'hex', 'id', 'input', 'int', 'intern', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals', 'long', 'map', 'max', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range', 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', 'vars', 'xrange', 'zip'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Builtin), (r'(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|NULL' r')\b', Name.Builtin.Pseudo), (words(( 'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'DeprecationWarning', 'EOFError', 'EnvironmentError', 'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'OverflowWarning', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'ZeroDivisionError'), prefix=r'(?<!\.)', suffix=r'\b'), Name.Exception), ], 'numbers': [ (r'(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float), (r'0\d+', Number.Oct), (r'0[xX][a-fA-F0-9]+', Number.Hex), (r'\d+L', Number.Integer.Long), (r'\d+', Number.Integer) ], 'backtick': [ ('`.*?`', String.Backtick), ], 'name': [ (r'@\w+', Name.Decorator), ('[a-zA-Z_]\w*', Name), ], 'funcname': [ ('[a-zA-Z_]\w*', Name.Function, '#pop') ], 'cdef': [ (r'(public|readonly|extern|api|inline)\b', Keyword.Reserved), (r'(struct|enum|union|class)\b', Keyword), (r'([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)', bygroups(Name.Function, Text), '#pop'), (r'([a-zA-Z_]\w*)(\s*)(,)', bygroups(Name.Function, Text, Punctuation)), (r'from\b', Keyword, '#pop'), (r'as\b', Keyword), (r':', Punctuation, '#pop'), (r'(?=["\'])', Text, '#pop'), (r'[a-zA-Z_]\w*', Keyword.Type), (r'.', Text), ], 'classname': [ ('[a-zA-Z_]\w*', Name.Class, '#pop') ], 'import': [ (r'(\s+)(as)(\s+)', bygroups(Text, Keyword, Text)), (r'[a-zA-Z_][\w.]*', Name.Namespace), (r'(\s*)(,)(\s*)', bygroups(Text, Operator, Text)), default('#pop') # all else: go back ], 'fromimport': [ (r'(\s+)(c?import)\b', bygroups(Text, Keyword), '#pop'), (r'[a-zA-Z_.][\w.]*', Name.Namespace), # ``cdef foo from "header"``, or ``for foo from 0 < i < 10`` default('#pop'), ], 'stringescape': [ (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|' r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape) ], 'strings': [ (r'%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?' '[hlL]?[diouxXeEfFgGcrs%]', String.Interpol), (r'[^\\\'"%\n]+', String), # quotes, percents and backslashes must be parsed one at a time (r'[\'"\\]', String), # unhandled string formatting sign (r'%', String) # newlines are an error (use "nl" state) ], 'nl': [ (r'\n', String) ], 'dqs': [ (r'"', String, '#pop'), (r'\\\\|\\"|\\\n', String.Escape), # included here again for raw strings include('strings') ], 'sqs': [ (r"'", String, '#pop'), (r"\\\\|\\'|\\\n", String.Escape), # included here again for raw strings include('strings') ], 'tdqs': [ (r'"""', String, '#pop'), include('strings'), include('nl') ], 'tsqs': [ (r"'''", String, '#pop'), include('strings'), include('nl') ], } class DgLexer(RegexLexer): """ Lexer for `dg <http://pyos.github.com/dg>`_, a functional and object-oriented programming language running on the CPython 3 VM. .. versionadded:: 1.6 """ name = 'dg' aliases = ['dg'] filenames = ['*.dg'] mimetypes = ['text/x-dg'] tokens = { 'root': [ (r'\s+', Text), (r'#.*?$', Comment.Single), (r'(?i)0b[01]+', Number.Bin), (r'(?i)0o[0-7]+', Number.Oct), (r'(?i)0x[0-9a-f]+', Number.Hex), (r'(?i)[+-]?[0-9]+\.[0-9]+(e[+-]?[0-9]+)?j?', Number.Float), (r'(?i)[+-]?[0-9]+e[+-]?\d+j?', Number.Float), (r'(?i)[+-]?[0-9]+j?', Number.Integer), (r"(?i)(br|r?b?)'''", String, combined('stringescape', 'tsqs', 'string')), (r'(?i)(br|r?b?)"""', String, combined('stringescape', 'tdqs', 'string')), (r"(?i)(br|r?b?)'", String, combined('stringescape', 'sqs', 'string')), (r'(?i)(br|r?b?)"', String, combined('stringescape', 'dqs', 'string')), (r"`\w+'*`", Operator), (r'\b(and|in|is|or|where)\b', Operator.Word), (r'[!$%&*+\-./:<-@\\^|~;,]+', Operator), (words(( 'bool', 'bytearray', 'bytes', 'classmethod', 'complex', 'dict', 'dict\'', 'float', 'frozenset', 'int', 'list', 'list\'', 'memoryview', 'object', 'property', 'range', 'set', 'set\'', 'slice', 'staticmethod', 'str', 'super', 'tuple', 'tuple\'', 'type'), prefix=r'(?<!\.)', suffix=r'(?![\'\w])'), Name.Builtin), (words(( '__import__', 'abs', 'all', 'any', 'bin', 'bind', 'chr', 'cmp', 'compile', 'complex', 'delattr', 'dir', 'divmod', 'drop', 'dropwhile', 'enumerate', 'eval', 'exhaust', 'filter', 'flip', 'foldl1?', 'format', 'fst', 'getattr', 'globals', 'hasattr', 'hash', 'head', 'hex', 'id', 'init', 'input', 'isinstance', 'issubclass', 'iter', 'iterate', 'last', 'len', 'locals', 'map', 'max', 'min', 'next', 'oct', 'open', 'ord', 'pow', 'print', 'repr', 'reversed', 'round', 'setattr', 'scanl1?', 'snd', 'sorted', 'sum', 'tail', 'take', 'takewhile', 'vars', 'zip'), prefix=r'(?<!\.)', suffix=r'(?![\'\w])'), Name.Builtin), (r"(?<!\.)(self|Ellipsis|NotImplemented|None|True|False)(?!['\w])", Name.Builtin.Pseudo), (r"(?<!\.)[A-Z]\w*(Error|Exception|Warning)'*(?!['\w])", Name.Exception), (r"(?<!\.)(Exception|GeneratorExit|KeyboardInterrupt|StopIteration|" r"SystemExit)(?!['\w])", Name.Exception), (r"(?<![\w.])(except|finally|for|if|import|not|otherwise|raise|" r"subclass|while|with|yield)(?!['\w])", Keyword.Reserved), (r"[A-Z_]+'*(?!['\w])", Name), (r"[A-Z]\w+'*(?!['\w])", Keyword.Type), (r"\w+'*", Name), (r'[()]', Punctuation), (r'.', Error), ], 'stringescape': [ (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|' r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape) ], 'string': [ (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?' '[hlL]?[diouxXeEfFgGcrs%]', String.Interpol), (r'[^\\\'"%\n]+', String), # quotes, percents and backslashes must be parsed one at a time (r'[\'"\\]', String), # unhandled string formatting sign (r'%', String), (r'\n', String) ], 'dqs': [ (r'"', String, '#pop') ], 'sqs': [ (r"'", String, '#pop') ], 'tdqs': [ (r'"""', String, '#pop') ], 'tsqs': [ (r"'''", String, '#pop') ], } class NumPyLexer(PythonLexer): """ A Python lexer recognizing Numerical Python builtins. .. versionadded:: 0.10 """ name = 'NumPy' aliases = ['numpy'] # override the mimetypes to not inherit them from python mimetypes = [] filenames = [] EXTRA_KEYWORDS = set(( 'abs', 'absolute', 'accumulate', 'add', 'alen', 'all', 'allclose', 'alltrue', 'alterdot', 'amax', 'amin', 'angle', 'any', 'append', 'apply_along_axis', 'apply_over_axes', 'arange', 'arccos', 'arccosh', 'arcsin', 'arcsinh', 'arctan', 'arctan2', 'arctanh', 'argmax', 'argmin', 'argsort', 'argwhere', 'around', 'array', 'array2string', 'array_equal', 'array_equiv', 'array_repr', 'array_split', 'array_str', 'arrayrange', 'asanyarray', 'asarray', 'asarray_chkfinite', 'ascontiguousarray', 'asfarray', 'asfortranarray', 'asmatrix', 'asscalar', 'astype', 'atleast_1d', 'atleast_2d', 'atleast_3d', 'average', 'bartlett', 'base_repr', 'beta', 'binary_repr', 'bincount', 'binomial', 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'blackman', 'bmat', 'broadcast', 'byte_bounds', 'bytes', 'byteswap', 'c_', 'can_cast', 'ceil', 'choose', 'clip', 'column_stack', 'common_type', 'compare_chararrays', 'compress', 'concatenate', 'conj', 'conjugate', 'convolve', 'copy', 'corrcoef', 'correlate', 'cos', 'cosh', 'cov', 'cross', 'cumprod', 'cumproduct', 'cumsum', 'delete', 'deprecate', 'diag', 'diagflat', 'diagonal', 'diff', 'digitize', 'disp', 'divide', 'dot', 'dsplit', 'dstack', 'dtype', 'dump', 'dumps', 'ediff1d', 'empty', 'empty_like', 'equal', 'exp', 'expand_dims', 'expm1', 'extract', 'eye', 'fabs', 'fastCopyAndTranspose', 'fft', 'fftfreq', 'fftshift', 'fill', 'finfo', 'fix', 'flat', 'flatnonzero', 'flatten', 'fliplr', 'flipud', 'floor', 'floor_divide', 'fmod', 'frexp', 'fromarrays', 'frombuffer', 'fromfile', 'fromfunction', 'fromiter', 'frompyfunc', 'fromstring', 'generic', 'get_array_wrap', 'get_include', 'get_numarray_include', 'get_numpy_include', 'get_printoptions', 'getbuffer', 'getbufsize', 'geterr', 'geterrcall', 'geterrobj', 'getfield', 'gradient', 'greater', 'greater_equal', 'gumbel', 'hamming', 'hanning', 'histogram', 'histogram2d', 'histogramdd', 'hsplit', 'hstack', 'hypot', 'i0', 'identity', 'ifft', 'imag', 'index_exp', 'indices', 'inf', 'info', 'inner', 'insert', 'int_asbuffer', 'interp', 'intersect1d', 'intersect1d_nu', 'inv', 'invert', 'iscomplex', 'iscomplexobj', 'isfinite', 'isfortran', 'isinf', 'isnan', 'isneginf', 'isposinf', 'isreal', 'isrealobj', 'isscalar', 'issctype', 'issubclass_', 'issubdtype', 'issubsctype', 'item', 'itemset', 'iterable', 'ix_', 'kaiser', 'kron', 'ldexp', 'left_shift', 'less', 'less_equal', 'lexsort', 'linspace', 'load', 'loads', 'loadtxt', 'log', 'log10', 'log1p', 'log2', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'logspace', 'lstsq', 'mat', 'matrix', 'max', 'maximum', 'maximum_sctype', 'may_share_memory', 'mean', 'median', 'meshgrid', 'mgrid', 'min', 'minimum', 'mintypecode', 'mod', 'modf', 'msort', 'multiply', 'nan', 'nan_to_num', 'nanargmax', 'nanargmin', 'nanmax', 'nanmin', 'nansum', 'ndenumerate', 'ndim', 'ndindex', 'negative', 'newaxis', 'newbuffer', 'newbyteorder', 'nonzero', 'not_equal', 'obj2sctype', 'ogrid', 'ones', 'ones_like', 'outer', 'permutation', 'piecewise', 'pinv', 'pkgload', 'place', 'poisson', 'poly', 'poly1d', 'polyadd', 'polyder', 'polydiv', 'polyfit', 'polyint', 'polymul', 'polysub', 'polyval', 'power', 'prod', 'product', 'ptp', 'put', 'putmask', 'r_', 'randint', 'random_integers', 'random_sample', 'ranf', 'rank', 'ravel', 'real', 'real_if_close', 'recarray', 'reciprocal', 'reduce', 'remainder', 'repeat', 'require', 'reshape', 'resize', 'restoredot', 'right_shift', 'rint', 'roll', 'rollaxis', 'roots', 'rot90', 'round', 'round_', 'row_stack', 's_', 'sample', 'savetxt', 'sctype2char', 'searchsorted', 'seed', 'select', 'set_numeric_ops', 'set_printoptions', 'set_string_function', 'setbufsize', 'setdiff1d', 'seterr', 'seterrcall', 'seterrobj', 'setfield', 'setflags', 'setmember1d', 'setxor1d', 'shape', 'show_config', 'shuffle', 'sign', 'signbit', 'sin', 'sinc', 'sinh', 'size', 'slice', 'solve', 'sometrue', 'sort', 'sort_complex', 'source', 'split', 'sqrt', 'square', 'squeeze', 'standard_normal', 'std', 'subtract', 'sum', 'svd', 'swapaxes', 'take', 'tan', 'tanh', 'tensordot', 'test', 'tile', 'tofile', 'tolist', 'tostring', 'trace', 'transpose', 'trapz', 'tri', 'tril', 'trim_zeros', 'triu', 'true_divide', 'typeDict', 'typename', 'uniform', 'union1d', 'unique', 'unique1d', 'unravel_index', 'unwrap', 'vander', 'var', 'vdot', 'vectorize', 'view', 'vonmises', 'vsplit', 'vstack', 'weibull', 'where', 'who', 'zeros', 'zeros_like' )) def get_tokens_unprocessed(self, text): for index, token, value in \ PythonLexer.get_tokens_unprocessed(self, text): if token is Name and value in self.EXTRA_KEYWORDS: yield index, Keyword.Pseudo, value else: yield index, token, value def analyse_text(text): return (shebang_matches(text, r'pythonw?(2(\.\d)?)?') or 'import ' in text[:1000]) \ and ('import numpy' in text or 'from numpy import' in text)