From 62a805381e41500fbc7914c37c71ab040a098f4e Mon Sep 17 00:00:00 2001 From: ilezhankin Date: Thu, 10 Feb 2022 16:45:56 +0300 Subject: Restoring authorship annotation for . Commit 2 of 2. --- contrib/python/Pygments/py2/LICENSE | 48 +- contrib/python/Pygments/py2/pygments/__init__.py | 152 +- contrib/python/Pygments/py2/pygments/cmdline.py | 1022 +- contrib/python/Pygments/py2/pygments/console.py | 114 +- contrib/python/Pygments/py2/pygments/filter.py | 138 +- .../Pygments/py2/pygments/filters/__init__.py | 698 +- contrib/python/Pygments/py2/pygments/formatter.py | 186 +- .../Pygments/py2/pygments/formatters/__init__.py | 232 +- .../Pygments/py2/pygments/formatters/_mapping.py | 166 +- .../Pygments/py2/pygments/formatters/bbcode.py | 216 +- .../Pygments/py2/pygments/formatters/html.py | 1672 +-- .../python/Pygments/py2/pygments/formatters/img.py | 1104 +- .../python/Pygments/py2/pygments/formatters/irc.py | 288 +- .../Pygments/py2/pygments/formatters/latex.py | 946 +- .../Pygments/py2/pygments/formatters/other.py | 320 +- .../python/Pygments/py2/pygments/formatters/rtf.py | 288 +- .../python/Pygments/py2/pygments/formatters/svg.py | 304 +- .../Pygments/py2/pygments/formatters/terminal.py | 224 +- .../py2/pygments/formatters/terminal256.py | 552 +- contrib/python/Pygments/py2/pygments/lexer.py | 1722 +-- .../Pygments/py2/pygments/lexers/__init__.py | 536 +- .../Pygments/py2/pygments/lexers/_asy_builtins.py | 3280 +++--- .../Pygments/py2/pygments/lexers/_cl_builtins.py | 434 +- .../py2/pygments/lexers/_cocoa_builtins.py | 124 +- .../py2/pygments/lexers/_csound_builtins.py | 16 +- .../py2/pygments/lexers/_lasso_builtins.py | 10638 +++++++++---------- .../Pygments/py2/pygments/lexers/_lua_builtins.py | 452 +- .../Pygments/py2/pygments/lexers/_mapping.py | 888 +- .../Pygments/py2/pygments/lexers/_mql_builtins.py | 2340 ++-- .../py2/pygments/lexers/_openedge_builtins.py | 5092 ++++----- .../Pygments/py2/pygments/lexers/_php_builtins.py | 9480 ++++++++--------- .../py2/pygments/lexers/_postgres_builtins.py | 1240 +-- .../py2/pygments/lexers/_scilab_builtins.py | 6186 +++++------ .../py2/pygments/lexers/_sourcemod_builtins.py | 2324 ++-- .../Pygments/py2/pygments/lexers/_stan_builtins.py | 814 +- .../Pygments/py2/pygments/lexers/_vim_builtins.py | 3876 +++---- .../Pygments/py2/pygments/lexers/actionscript.py | 474 +- .../python/Pygments/py2/pygments/lexers/agile.py | 46 +- .../python/Pygments/py2/pygments/lexers/algebra.py | 434 +- .../python/Pygments/py2/pygments/lexers/ambient.py | 150 +- contrib/python/Pygments/py2/pygments/lexers/apl.py | 192 +- .../Pygments/py2/pygments/lexers/archetype.py | 634 +- contrib/python/Pygments/py2/pygments/lexers/asm.py | 726 +- .../Pygments/py2/pygments/lexers/automation.py | 742 +- .../python/Pygments/py2/pygments/lexers/basic.py | 994 +- .../Pygments/py2/pygments/lexers/business.py | 1010 +- .../python/Pygments/py2/pygments/lexers/c_cpp.py | 438 +- .../python/Pygments/py2/pygments/lexers/c_like.py | 830 +- .../python/Pygments/py2/pygments/lexers/chapel.py | 178 +- .../Pygments/py2/pygments/lexers/compiled.py | 64 +- .../python/Pygments/py2/pygments/lexers/configs.py | 1552 +-- .../python/Pygments/py2/pygments/lexers/console.py | 226 +- .../python/Pygments/py2/pygments/lexers/csound.py | 352 +- contrib/python/Pygments/py2/pygments/lexers/css.py | 724 +- contrib/python/Pygments/py2/pygments/lexers/d.py | 500 +- .../python/Pygments/py2/pygments/lexers/dalvik.py | 248 +- .../python/Pygments/py2/pygments/lexers/data.py | 1042 +- .../python/Pygments/py2/pygments/lexers/diff.py | 208 +- .../python/Pygments/py2/pygments/lexers/dotnet.py | 1298 +-- .../python/Pygments/py2/pygments/lexers/dsls.py | 1248 +-- .../python/Pygments/py2/pygments/lexers/dylan.py | 554 +- contrib/python/Pygments/py2/pygments/lexers/ecl.py | 248 +- .../python/Pygments/py2/pygments/lexers/eiffel.py | 128 +- contrib/python/Pygments/py2/pygments/lexers/elm.py | 222 +- .../python/Pygments/py2/pygments/lexers/erlang.py | 1004 +- .../Pygments/py2/pygments/lexers/esoteric.py | 344 +- .../python/Pygments/py2/pygments/lexers/ezhil.py | 116 +- .../python/Pygments/py2/pygments/lexers/factor.py | 686 +- .../python/Pygments/py2/pygments/lexers/fantom.py | 498 +- .../python/Pygments/py2/pygments/lexers/felix.py | 542 +- .../python/Pygments/py2/pygments/lexers/fortran.py | 396 +- .../python/Pygments/py2/pygments/lexers/foxpro.py | 854 +- .../Pygments/py2/pygments/lexers/functional.py | 40 +- contrib/python/Pygments/py2/pygments/lexers/go.py | 200 +- .../py2/pygments/lexers/grammar_notation.py | 254 +- .../python/Pygments/py2/pygments/lexers/graph.py | 142 +- .../Pygments/py2/pygments/lexers/graphics.py | 1056 +- .../python/Pygments/py2/pygments/lexers/haskell.py | 1640 +-- .../python/Pygments/py2/pygments/lexers/haxe.py | 1858 ++-- contrib/python/Pygments/py2/pygments/lexers/hdl.py | 598 +- .../python/Pygments/py2/pygments/lexers/hexdump.py | 170 +- .../python/Pygments/py2/pygments/lexers/html.py | 1148 +- contrib/python/Pygments/py2/pygments/lexers/idl.py | 510 +- .../python/Pygments/py2/pygments/lexers/igor.py | 156 +- .../python/Pygments/py2/pygments/lexers/inferno.py | 188 +- .../Pygments/py2/pygments/lexers/installers.py | 642 +- .../Pygments/py2/pygments/lexers/int_fiction.py | 2682 ++--- .../python/Pygments/py2/pygments/lexers/iolang.py | 122 +- contrib/python/Pygments/py2/pygments/lexers/j.py | 280 +- .../Pygments/py2/pygments/lexers/javascript.py | 2704 ++--- .../python/Pygments/py2/pygments/lexers/julia.py | 240 +- contrib/python/Pygments/py2/pygments/lexers/jvm.py | 3060 +++--- .../python/Pygments/py2/pygments/lexers/lisp.py | 3148 +++--- .../python/Pygments/py2/pygments/lexers/make.py | 396 +- .../python/Pygments/py2/pygments/lexers/markup.py | 992 +- .../python/Pygments/py2/pygments/lexers/math.py | 40 +- .../python/Pygments/py2/pygments/lexers/matlab.py | 1286 +-- contrib/python/Pygments/py2/pygments/lexers/ml.py | 1524 +-- .../Pygments/py2/pygments/lexers/modeling.py | 682 +- .../python/Pygments/py2/pygments/lexers/modula2.py | 3118 +++--- .../python/Pygments/py2/pygments/lexers/nimrod.py | 294 +- contrib/python/Pygments/py2/pygments/lexers/nit.py | 126 +- contrib/python/Pygments/py2/pygments/lexers/nix.py | 270 +- .../python/Pygments/py2/pygments/lexers/oberon.py | 202 +- .../Pygments/py2/pygments/lexers/objective.py | 948 +- contrib/python/Pygments/py2/pygments/lexers/ooc.py | 168 +- .../python/Pygments/py2/pygments/lexers/other.py | 78 +- .../Pygments/py2/pygments/lexers/parasail.py | 154 +- .../python/Pygments/py2/pygments/lexers/parsers.py | 1656 +-- .../python/Pygments/py2/pygments/lexers/pascal.py | 1250 +-- .../python/Pygments/py2/pygments/lexers/pawn.py | 350 +- .../python/Pygments/py2/pygments/lexers/perl.py | 1186 +-- contrib/python/Pygments/py2/pygments/lexers/php.py | 468 +- .../python/Pygments/py2/pygments/lexers/praat.py | 484 +- .../python/Pygments/py2/pygments/lexers/prolog.py | 554 +- .../python/Pygments/py2/pygments/lexers/python.py | 1314 +-- contrib/python/Pygments/py2/pygments/lexers/qvt.py | 206 +- contrib/python/Pygments/py2/pygments/lexers/r.py | 368 +- contrib/python/Pygments/py2/pygments/lexers/rdf.py | 442 +- .../python/Pygments/py2/pygments/lexers/rebol.py | 846 +- .../Pygments/py2/pygments/lexers/resource.py | 162 +- .../Pygments/py2/pygments/lexers/roboconf.py | 162 +- .../Pygments/py2/pygments/lexers/robotframework.py | 1114 +- .../python/Pygments/py2/pygments/lexers/ruby.py | 1006 +- .../python/Pygments/py2/pygments/lexers/rust.py | 294 +- .../Pygments/py2/pygments/lexers/scripting.py | 2334 ++-- .../python/Pygments/py2/pygments/lexers/shell.py | 1498 +-- .../Pygments/py2/pygments/lexers/smalltalk.py | 388 +- .../python/Pygments/py2/pygments/lexers/snobol.py | 164 +- .../python/Pygments/py2/pygments/lexers/special.py | 200 +- contrib/python/Pygments/py2/pygments/lexers/sql.py | 976 +- .../Pygments/py2/pygments/lexers/supercollider.py | 168 +- contrib/python/Pygments/py2/pygments/lexers/tcl.py | 288 +- .../Pygments/py2/pygments/lexers/templates.py | 4266 ++++---- .../python/Pygments/py2/pygments/lexers/testing.py | 408 +- .../python/Pygments/py2/pygments/lexers/text.py | 48 +- .../Pygments/py2/pygments/lexers/textedit.py | 330 +- .../Pygments/py2/pygments/lexers/textfmts.py | 566 +- .../python/Pygments/py2/pygments/lexers/theorem.py | 866 +- .../Pygments/py2/pygments/lexers/trafficscript.py | 106 +- .../python/Pygments/py2/pygments/lexers/urbi.py | 264 +- contrib/python/Pygments/py2/pygments/lexers/web.py | 46 +- .../python/Pygments/py2/pygments/lexers/webmisc.py | 1924 ++-- contrib/python/Pygments/py2/pygments/lexers/x10.py | 136 +- contrib/python/Pygments/py2/pygments/modeline.py | 76 +- contrib/python/Pygments/py2/pygments/plugin.py | 112 +- contrib/python/Pygments/py2/pygments/regexopt.py | 180 +- contrib/python/Pygments/py2/pygments/scanner.py | 204 +- contrib/python/Pygments/py2/pygments/sphinxext.py | 312 +- contrib/python/Pygments/py2/pygments/style.py | 230 +- .../Pygments/py2/pygments/styles/__init__.py | 152 +- .../python/Pygments/py2/pygments/styles/algol.py | 124 +- .../Pygments/py2/pygments/styles/algol_nu.py | 124 +- .../python/Pygments/py2/pygments/styles/arduino.py | 180 +- .../python/Pygments/py2/pygments/styles/autumn.py | 128 +- .../python/Pygments/py2/pygments/styles/borland.py | 100 +- contrib/python/Pygments/py2/pygments/styles/bw.py | 96 +- .../Pygments/py2/pygments/styles/colorful.py | 160 +- .../python/Pygments/py2/pygments/styles/default.py | 144 +- .../python/Pygments/py2/pygments/styles/emacs.py | 142 +- .../Pygments/py2/pygments/styles/friendly.py | 142 +- .../python/Pygments/py2/pygments/styles/fruity.py | 82 +- .../python/Pygments/py2/pygments/styles/igor.py | 56 +- .../Pygments/py2/pygments/styles/lovelace.py | 184 +- .../python/Pygments/py2/pygments/styles/manni.py | 148 +- .../python/Pygments/py2/pygments/styles/monokai.py | 208 +- .../python/Pygments/py2/pygments/styles/murphy.py | 158 +- .../python/Pygments/py2/pygments/styles/native.py | 128 +- .../Pygments/py2/pygments/styles/paraiso_dark.py | 248 +- .../Pygments/py2/pygments/styles/paraiso_light.py | 248 +- .../python/Pygments/py2/pygments/styles/pastie.py | 148 +- .../python/Pygments/py2/pygments/styles/perldoc.py | 134 +- contrib/python/Pygments/py2/pygments/styles/rrt.py | 64 +- .../python/Pygments/py2/pygments/styles/tango.py | 280 +- .../python/Pygments/py2/pygments/styles/trac.py | 124 +- contrib/python/Pygments/py2/pygments/styles/vim.py | 124 +- contrib/python/Pygments/py2/pygments/styles/vs.py | 74 +- .../python/Pygments/py2/pygments/styles/xcode.py | 100 +- contrib/python/Pygments/py2/pygments/token.py | 370 +- contrib/python/Pygments/py2/pygments/unistring.py | 360 +- contrib/python/Pygments/py2/pygments/util.py | 766 +- contrib/python/Pygments/py2/ya.make | 372 +- contrib/python/Pygments/py3/LICENSE | 48 +- contrib/python/Pygments/py3/pygments/__init__.py | 142 +- contrib/python/Pygments/py3/pygments/cmdline.py | 690 +- contrib/python/Pygments/py3/pygments/console.py | 112 +- contrib/python/Pygments/py3/pygments/filter.py | 126 +- .../Pygments/py3/pygments/filters/__init__.py | 658 +- contrib/python/Pygments/py3/pygments/formatter.py | 178 +- .../Pygments/py3/pygments/formatters/__init__.py | 222 +- .../Pygments/py3/pygments/formatters/_mapping.py | 160 +- .../Pygments/py3/pygments/formatters/bbcode.py | 214 +- .../Pygments/py3/pygments/formatters/html.py | 1410 +-- .../python/Pygments/py3/pygments/formatters/img.py | 1018 +- .../python/Pygments/py3/pygments/formatters/irc.py | 280 +- .../Pygments/py3/pygments/formatters/latex.py | 882 +- .../Pygments/py3/pygments/formatters/other.py | 286 +- .../python/Pygments/py3/pygments/formatters/rtf.py | 234 +- .../python/Pygments/py3/pygments/formatters/svg.py | 296 +- .../Pygments/py3/pygments/formatters/terminal.py | 206 +- .../py3/pygments/formatters/terminal256.py | 530 +- contrib/python/Pygments/py3/pygments/lexer.py | 1638 +-- .../Pygments/py3/pygments/lexers/__init__.py | 518 +- .../Pygments/py3/pygments/lexers/_asy_builtins.py | 3278 +++--- .../Pygments/py3/pygments/lexers/_cl_builtins.py | 432 +- .../py3/pygments/lexers/_cocoa_builtins.py | 108 +- .../py3/pygments/lexers/_csound_builtins.py | 14 +- .../py3/pygments/lexers/_lasso_builtins.py | 10636 +++++++++--------- .../Pygments/py3/pygments/lexers/_lua_builtins.py | 446 +- .../Pygments/py3/pygments/lexers/_mapping.py | 778 +- .../Pygments/py3/pygments/lexers/_mql_builtins.py | 2338 ++-- .../py3/pygments/lexers/_openedge_builtins.py | 4322 ++++---- .../Pygments/py3/pygments/lexers/_php_builtins.py | 9470 ++++++++--------- .../py3/pygments/lexers/_postgres_builtins.py | 1208 +-- .../py3/pygments/lexers/_scilab_builtins.py | 6182 +++++------ .../py3/pygments/lexers/_sourcemod_builtins.py | 2318 ++-- .../Pygments/py3/pygments/lexers/_stan_builtins.py | 812 +- .../Pygments/py3/pygments/lexers/_vim_builtins.py | 3874 +++---- .../Pygments/py3/pygments/lexers/actionscript.py | 432 +- .../python/Pygments/py3/pygments/lexers/agile.py | 44 +- .../python/Pygments/py3/pygments/lexers/algebra.py | 428 +- .../python/Pygments/py3/pygments/lexers/ambient.py | 136 +- contrib/python/Pygments/py3/pygments/lexers/apl.py | 162 +- .../Pygments/py3/pygments/lexers/archetype.py | 586 +- contrib/python/Pygments/py3/pygments/lexers/asm.py | 652 +- .../Pygments/py3/pygments/lexers/automation.py | 738 +- .../python/Pygments/py3/pygments/lexers/basic.py | 914 +- .../Pygments/py3/pygments/lexers/business.py | 980 +- .../python/Pygments/py3/pygments/lexers/c_cpp.py | 346 +- .../python/Pygments/py3/pygments/lexers/c_like.py | 798 +- .../python/Pygments/py3/pygments/lexers/chapel.py | 148 +- .../Pygments/py3/pygments/lexers/compiled.py | 62 +- .../python/Pygments/py3/pygments/lexers/configs.py | 1412 +-- .../python/Pygments/py3/pygments/lexers/console.py | 218 +- .../python/Pygments/py3/pygments/lexers/csound.py | 342 +- contrib/python/Pygments/py3/pygments/lexers/css.py | 664 +- contrib/python/Pygments/py3/pygments/lexers/d.py | 468 +- .../python/Pygments/py3/pygments/lexers/dalvik.py | 228 +- .../python/Pygments/py3/pygments/lexers/data.py | 834 +- .../python/Pygments/py3/pygments/lexers/diff.py | 172 +- .../python/Pygments/py3/pygments/lexers/dotnet.py | 1152 +- .../python/Pygments/py3/pygments/lexers/dsls.py | 1180 +- .../python/Pygments/py3/pygments/lexers/dylan.py | 522 +- contrib/python/Pygments/py3/pygments/lexers/ecl.py | 236 +- .../python/Pygments/py3/pygments/lexers/eiffel.py | 110 +- contrib/python/Pygments/py3/pygments/lexers/elm.py | 204 +- .../python/Pygments/py3/pygments/lexers/erlang.py | 920 +- .../Pygments/py3/pygments/lexers/esoteric.py | 326 +- .../python/Pygments/py3/pygments/lexers/ezhil.py | 96 +- .../python/Pygments/py3/pygments/lexers/factor.py | 528 +- .../python/Pygments/py3/pygments/lexers/fantom.py | 440 +- .../python/Pygments/py3/pygments/lexers/felix.py | 516 +- .../python/Pygments/py3/pygments/lexers/fortran.py | 370 +- .../python/Pygments/py3/pygments/lexers/foxpro.py | 850 +- .../Pygments/py3/pygments/lexers/functional.py | 38 +- contrib/python/Pygments/py3/pygments/lexers/go.py | 184 +- .../py3/pygments/lexers/grammar_notation.py | 242 +- .../python/Pygments/py3/pygments/lexers/graph.py | 134 +- .../Pygments/py3/pygments/lexers/graphics.py | 1008 +- .../python/Pygments/py3/pygments/lexers/haskell.py | 1528 +-- .../python/Pygments/py3/pygments/lexers/haxe.py | 1836 ++-- contrib/python/Pygments/py3/pygments/lexers/hdl.py | 496 +- .../python/Pygments/py3/pygments/lexers/hexdump.py | 140 +- .../python/Pygments/py3/pygments/lexers/html.py | 1108 +- contrib/python/Pygments/py3/pygments/lexers/idl.py | 506 +- .../python/Pygments/py3/pygments/lexers/igor.py | 154 +- .../python/Pygments/py3/pygments/lexers/inferno.py | 186 +- .../Pygments/py3/pygments/lexers/installers.py | 596 +- .../Pygments/py3/pygments/lexers/int_fiction.py | 2654 ++--- .../python/Pygments/py3/pygments/lexers/iolang.py | 118 +- contrib/python/Pygments/py3/pygments/lexers/j.py | 276 +- .../Pygments/py3/pygments/lexers/javascript.py | 2432 ++--- .../python/Pygments/py3/pygments/lexers/julia.py | 172 +- contrib/python/Pygments/py3/pygments/lexers/jvm.py | 2596 ++--- .../python/Pygments/py3/pygments/lexers/lisp.py | 3100 +++--- .../python/Pygments/py3/pygments/lexers/make.py | 372 +- .../python/Pygments/py3/pygments/lexers/markup.py | 960 +- .../python/Pygments/py3/pygments/lexers/math.py | 38 +- .../python/Pygments/py3/pygments/lexers/matlab.py | 1126 +- contrib/python/Pygments/py3/pygments/lexers/ml.py | 1508 +-- .../Pygments/py3/pygments/lexers/modeling.py | 678 +- .../python/Pygments/py3/pygments/lexers/modula2.py | 3102 +++--- .../python/Pygments/py3/pygments/lexers/nimrod.py | 290 +- contrib/python/Pygments/py3/pygments/lexers/nit.py | 124 +- contrib/python/Pygments/py3/pygments/lexers/nix.py | 268 +- .../python/Pygments/py3/pygments/lexers/oberon.py | 200 +- .../Pygments/py3/pygments/lexers/objective.py | 938 +- contrib/python/Pygments/py3/pygments/lexers/ooc.py | 166 +- .../python/Pygments/py3/pygments/lexers/other.py | 76 +- .../Pygments/py3/pygments/lexers/parasail.py | 152 +- .../python/Pygments/py3/pygments/lexers/parsers.py | 1504 +-- .../python/Pygments/py3/pygments/lexers/pascal.py | 1240 +-- .../python/Pygments/py3/pygments/lexers/pawn.py | 342 +- .../python/Pygments/py3/pygments/lexers/perl.py | 906 +- contrib/python/Pygments/py3/pygments/lexers/php.py | 456 +- .../python/Pygments/py3/pygments/lexers/praat.py | 482 +- .../python/Pygments/py3/pygments/lexers/prolog.py | 532 +- .../python/Pygments/py3/pygments/lexers/python.py | 1270 +-- contrib/python/Pygments/py3/pygments/lexers/qvt.py | 204 +- contrib/python/Pygments/py3/pygments/lexers/r.py | 354 +- contrib/python/Pygments/py3/pygments/lexers/rdf.py | 412 +- .../python/Pygments/py3/pygments/lexers/rebol.py | 844 +- .../Pygments/py3/pygments/lexers/resource.py | 158 +- .../Pygments/py3/pygments/lexers/roboconf.py | 160 +- .../Pygments/py3/pygments/lexers/robotframework.py | 1054 +- .../python/Pygments/py3/pygments/lexers/ruby.py | 934 +- .../python/Pygments/py3/pygments/lexers/rust.py | 214 +- .../Pygments/py3/pygments/lexers/scripting.py | 2292 ++-- .../python/Pygments/py3/pygments/lexers/shell.py | 1438 +-- .../Pygments/py3/pygments/lexers/smalltalk.py | 384 +- .../python/Pygments/py3/pygments/lexers/snobol.py | 162 +- .../python/Pygments/py3/pygments/lexers/special.py | 142 +- contrib/python/Pygments/py3/pygments/lexers/sql.py | 812 +- .../Pygments/py3/pygments/lexers/supercollider.py | 160 +- contrib/python/Pygments/py3/pygments/lexers/tcl.py | 280 +- .../Pygments/py3/pygments/lexers/templates.py | 4046 +++---- .../python/Pygments/py3/pygments/lexers/testing.py | 398 +- .../python/Pygments/py3/pygments/lexers/text.py | 46 +- .../Pygments/py3/pygments/lexers/textedit.py | 312 +- .../Pygments/py3/pygments/lexers/textfmts.py | 556 +- .../python/Pygments/py3/pygments/lexers/theorem.py | 786 +- .../Pygments/py3/pygments/lexers/trafficscript.py | 98 +- .../python/Pygments/py3/pygments/lexers/urbi.py | 258 +- contrib/python/Pygments/py3/pygments/lexers/web.py | 44 +- .../python/Pygments/py3/pygments/lexers/webmisc.py | 1860 ++-- contrib/python/Pygments/py3/pygments/lexers/x10.py | 124 +- contrib/python/Pygments/py3/pygments/modeline.py | 74 +- contrib/python/Pygments/py3/pygments/plugin.py | 110 +- contrib/python/Pygments/py3/pygments/regexopt.py | 176 +- contrib/python/Pygments/py3/pygments/scanner.py | 200 +- contrib/python/Pygments/py3/pygments/sphinxext.py | 306 +- contrib/python/Pygments/py3/pygments/style.py | 222 +- .../Pygments/py3/pygments/styles/__init__.py | 144 +- .../python/Pygments/py3/pygments/styles/algol.py | 122 +- .../Pygments/py3/pygments/styles/algol_nu.py | 122 +- .../python/Pygments/py3/pygments/styles/arduino.py | 178 +- .../python/Pygments/py3/pygments/styles/autumn.py | 126 +- .../python/Pygments/py3/pygments/styles/borland.py | 98 +- contrib/python/Pygments/py3/pygments/styles/bw.py | 94 +- .../Pygments/py3/pygments/styles/colorful.py | 158 +- .../python/Pygments/py3/pygments/styles/default.py | 118 +- .../python/Pygments/py3/pygments/styles/emacs.py | 140 +- .../Pygments/py3/pygments/styles/friendly.py | 140 +- .../python/Pygments/py3/pygments/styles/fruity.py | 80 +- .../python/Pygments/py3/pygments/styles/igor.py | 54 +- .../Pygments/py3/pygments/styles/lovelace.py | 182 +- .../python/Pygments/py3/pygments/styles/manni.py | 146 +- .../python/Pygments/py3/pygments/styles/monokai.py | 202 +- .../python/Pygments/py3/pygments/styles/murphy.py | 156 +- .../python/Pygments/py3/pygments/styles/native.py | 126 +- .../Pygments/py3/pygments/styles/paraiso_dark.py | 240 +- .../Pygments/py3/pygments/styles/paraiso_light.py | 240 +- .../python/Pygments/py3/pygments/styles/pastie.py | 146 +- .../python/Pygments/py3/pygments/styles/perldoc.py | 132 +- contrib/python/Pygments/py3/pygments/styles/rrt.py | 60 +- .../python/Pygments/py3/pygments/styles/tango.py | 276 +- .../python/Pygments/py3/pygments/styles/trac.py | 122 +- contrib/python/Pygments/py3/pygments/styles/vim.py | 122 +- contrib/python/Pygments/py3/pygments/styles/vs.py | 72 +- .../python/Pygments/py3/pygments/styles/xcode.py | 98 +- contrib/python/Pygments/py3/pygments/token.py | 368 +- contrib/python/Pygments/py3/pygments/unistring.py | 212 +- contrib/python/Pygments/py3/pygments/util.py | 576 +- contrib/python/Pygments/py3/ya.make | 372 +- contrib/python/Pygments/ya.make | 4 +- 365 files changed, 139254 insertions(+), 139254 deletions(-) (limited to 'contrib/python/Pygments') diff --git a/contrib/python/Pygments/py2/LICENSE b/contrib/python/Pygments/py2/LICENSE index ffe68f1d41d..13d1c74b49a 100644 --- a/contrib/python/Pygments/py2/LICENSE +++ b/contrib/python/Pygments/py2/LICENSE @@ -1,25 +1,25 @@ Copyright (c) 2006-2019 by the respective authors (see AUTHORS file). -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/contrib/python/Pygments/py2/pygments/__init__.py b/contrib/python/Pygments/py2/pygments/__init__.py index 38f22fc9316..89efc350ee5 100644 --- a/contrib/python/Pygments/py2/pygments/__init__.py +++ b/contrib/python/Pygments/py2/pygments/__init__.py @@ -1,90 +1,90 @@ -# -*- coding: utf-8 -*- -""" - Pygments - ~~~~~~~~ - - Pygments is a syntax highlighting package written in Python. - - It is a generic syntax highlighter for general use in all kinds of software - such as forum systems, wikis or other applications that need to prettify - source code. Highlights are: - - * a wide range of common languages and markup formats is supported - * special attention is paid to details, increasing quality by a fair amount - * support for new languages and formats are added easily - * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image - formats that PIL supports, and ANSI sequences - * it is usable as a command-line tool and as a library - * ... and it highlights even Brainfuck! - +# -*- coding: utf-8 -*- +""" + Pygments + ~~~~~~~~ + + Pygments is a syntax highlighting package written in Python. + + It is a generic syntax highlighter for general use in all kinds of software + such as forum systems, wikis or other applications that need to prettify + source code. Highlights are: + + * a wide range of common languages and markup formats is supported + * special attention is paid to details, increasing quality by a fair amount + * support for new languages and formats are added easily + * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image + formats that PIL supports, and ANSI sequences + * it is usable as a command-line tool and as a library + * ... and it highlights even Brainfuck! + The `Pygments master branch`_ is installable with ``easy_install Pygments==dev``. - + .. _Pygments master branch: https://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev - + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" + :license: BSD, see LICENSE for details. +""" import sys - + from pygments.util import StringIO, BytesIO __version__ = '2.5.2' -__docformat__ = 'restructuredtext' - -__all__ = ['lex', 'format', 'highlight'] - - -def lex(code, lexer): - """ - Lex ``code`` with ``lexer`` and return an iterable of tokens. - """ - try: - return lexer.get_tokens(code) - except TypeError as err: +__docformat__ = 'restructuredtext' + +__all__ = ['lex', 'format', 'highlight'] + + +def lex(code, lexer): + """ + Lex ``code`` with ``lexer`` and return an iterable of tokens. + """ + try: + return lexer.get_tokens(code) + except TypeError as err: if (isinstance(err.args[0], str) and ('unbound method get_tokens' in err.args[0] or 'missing 1 required positional argument' in err.args[0])): - raise TypeError('lex() argument must be a lexer instance, ' - 'not a class') - raise - - -def format(tokens, formatter, outfile=None): # pylint: disable=redefined-builtin - """ - Format a tokenlist ``tokens`` with the formatter ``formatter``. - - If ``outfile`` is given and a valid file object (an object - with a ``write`` method), the result will be written to it, otherwise - it is returned as a string. - """ - try: - if not outfile: - realoutfile = getattr(formatter, 'encoding', None) and BytesIO() or StringIO() - formatter.format(tokens, realoutfile) - return realoutfile.getvalue() - else: - formatter.format(tokens, outfile) - except TypeError as err: + raise TypeError('lex() argument must be a lexer instance, ' + 'not a class') + raise + + +def format(tokens, formatter, outfile=None): # pylint: disable=redefined-builtin + """ + Format a tokenlist ``tokens`` with the formatter ``formatter``. + + If ``outfile`` is given and a valid file object (an object + with a ``write`` method), the result will be written to it, otherwise + it is returned as a string. + """ + try: + if not outfile: + realoutfile = getattr(formatter, 'encoding', None) and BytesIO() or StringIO() + formatter.format(tokens, realoutfile) + return realoutfile.getvalue() + else: + formatter.format(tokens, outfile) + except TypeError as err: if (isinstance(err.args[0], str) and ('unbound method format' in err.args[0] or 'missing 1 required positional argument' in err.args[0])): - raise TypeError('format() argument must be a formatter instance, ' - 'not a class') - raise - - -def highlight(code, lexer, formatter, outfile=None): - """ - Lex ``code`` with ``lexer`` and format it with the formatter ``formatter``. - - If ``outfile`` is given and a valid file object (an object - with a ``write`` method), the result will be written to it, otherwise - it is returned as a string. - """ - return format(lex(code, lexer), formatter, outfile) - - -if __name__ == '__main__': # pragma: no cover - from pygments.cmdline import main - sys.exit(main(sys.argv)) + raise TypeError('format() argument must be a formatter instance, ' + 'not a class') + raise + + +def highlight(code, lexer, formatter, outfile=None): + """ + Lex ``code`` with ``lexer`` and format it with the formatter ``formatter``. + + If ``outfile`` is given and a valid file object (an object + with a ``write`` method), the result will be written to it, otherwise + it is returned as a string. + """ + return format(lex(code, lexer), formatter, outfile) + + +if __name__ == '__main__': # pragma: no cover + from pygments.cmdline import main + sys.exit(main(sys.argv)) diff --git a/contrib/python/Pygments/py2/pygments/cmdline.py b/contrib/python/Pygments/py2/pygments/cmdline.py index 549d43ae534..34752d66b2e 100644 --- a/contrib/python/Pygments/py2/pygments/cmdline.py +++ b/contrib/python/Pygments/py2/pygments/cmdline.py @@ -1,64 +1,64 @@ -# -*- coding: utf-8 -*- -""" - pygments.cmdline - ~~~~~~~~~~~~~~~~ - - Command line interface. - +# -*- coding: utf-8 -*- +""" + pygments.cmdline + ~~~~~~~~~~~~~~~~ + + Command line interface. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from __future__ import print_function - + :license: BSD, see LICENSE for details. +""" + +from __future__ import print_function + import os -import sys -import getopt -from textwrap import dedent - -from pygments import __version__, highlight -from pygments.util import ClassNotFound, OptionError, docstring_headline, \ - guess_decode, guess_decode_from_terminal, terminal_encoding -from pygments.lexers import get_all_lexers, get_lexer_by_name, guess_lexer, \ +import sys +import getopt +from textwrap import dedent + +from pygments import __version__, highlight +from pygments.util import ClassNotFound, OptionError, docstring_headline, \ + guess_decode, guess_decode_from_terminal, terminal_encoding +from pygments.lexers import get_all_lexers, get_lexer_by_name, guess_lexer, \ load_lexer_from_file, get_lexer_for_filename, find_lexer_class_for_filename -from pygments.lexers.special import TextLexer -from pygments.formatters.latex import LatexEmbeddedLexer, LatexFormatter -from pygments.formatters import get_all_formatters, get_formatter_by_name, \ +from pygments.lexers.special import TextLexer +from pygments.formatters.latex import LatexEmbeddedLexer, LatexFormatter +from pygments.formatters import get_all_formatters, get_formatter_by_name, \ load_formatter_from_file, get_formatter_for_filename, find_formatter_class -from pygments.formatters.terminal import TerminalFormatter +from pygments.formatters.terminal import TerminalFormatter from pygments.formatters.terminal256 import Terminal256Formatter -from pygments.filters import get_all_filters, find_filter_class -from pygments.styles import get_all_styles, get_style_by_name - - -USAGE = """\ -Usage: %s [-l | -g] [-F [:]] [-f ] +from pygments.filters import get_all_filters, find_filter_class +from pygments.styles import get_all_styles, get_style_by_name + + +USAGE = """\ +Usage: %s [-l | -g] [-F [:]] [-f ] [-O ] [-P ] [-s] [-v] [-x] [-o ] [] - - %s -S - - -

%(title)s

- -''' - -DOC_HEADER_EXTERNALCSS = '''\ - - - - - %(title)s - - - - -

%(title)s

- -''' - -DOC_FOOTER = '''\ - - -''' - - -class HtmlFormatter(Formatter): - r""" - Format tokens as HTML 4 ```` tags within a ``
`` tag, wrapped 
-    in a ``
`` tag. The ``
``'s CSS class can be set by the `cssclass` - option. - - If the `linenos` option is set to ``"table"``, the ``
`` is 
-    additionally wrapped inside a ```` which has one row and two 
-    cells: one containing the line numbers and one containing the code. 
-    Example: 
- 
-    .. sourcecode:: html 
- 
-        
-
- - -
-
1 
-            2
-
-
def foo(bar): 
-              pass 
-            
-
- - (whitespace added to improve clarity). - - Wrapping can be disabled using the `nowrap` option. - - A list of lines can be specified using the `hl_lines` option to make these - lines highlighted (as of Pygments 0.11). - - With the `full` option, a complete HTML 4 document is output, including - the style definitions inside a `` + + +

%(title)s

+ +''' + +DOC_HEADER_EXTERNALCSS = '''\ + + + + + %(title)s + + + + +

%(title)s

+ +''' + +DOC_FOOTER = '''\ + + +''' + + +class HtmlFormatter(Formatter): + r""" + Format tokens as HTML 4 ```` tags within a ``
`` tag, wrapped
+    in a ``
`` tag. The ``
``'s CSS class can be set by the `cssclass` + option. + + If the `linenos` option is set to ``"table"``, the ``
`` is
+    additionally wrapped inside a ```` which has one row and two
+    cells: one containing the line numbers and one containing the code.
+    Example:
+
+    .. sourcecode:: html
+
+        
+
+ + +
+
1
+            2
+
+
def foo(bar):
+              pass
+            
+
+ + (whitespace added to improve clarity). + + Wrapping can be disabled using the `nowrap` option. + + A list of lines can be specified using the `hl_lines` option to make these + lines highlighted (as of Pygments 0.11). + + With the `full` option, a complete HTML 4 document is output, including + the style definitions inside a `` - - -

%(title)s

- -''' - -DOC_HEADER_EXTERNALCSS = '''\ - - - - - %(title)s - - - - -

%(title)s

- -''' - -DOC_FOOTER = '''\ - - -''' - - -class HtmlFormatter(Formatter): - r""" - Format tokens as HTML 4 ```` tags within a ``
`` tag, wrapped 
-    in a ``
`` tag. The ``
``'s CSS class can be set by the `cssclass` - option. - - If the `linenos` option is set to ``"table"``, the ``
`` is 
-    additionally wrapped inside a ```` which has one row and two 
-    cells: one containing the line numbers and one containing the code. 
-    Example: 
- 
-    .. sourcecode:: html 
- 
-        
-
- - -
-
1 
-            2
-
-
def foo(bar): 
-              pass 
-            
-
- - (whitespace added to improve clarity). - - Wrapping can be disabled using the `nowrap` option. - - A list of lines can be specified using the `hl_lines` option to make these - lines highlighted (as of Pygments 0.11). - - With the `full` option, a complete HTML 4 document is output, including - the style definitions inside a `` + + +

%(title)s

+ +''' + +DOC_HEADER_EXTERNALCSS = '''\ + + + + + %(title)s + + + + +

%(title)s

+ +''' + +DOC_FOOTER = '''\ + + +''' + + +class HtmlFormatter(Formatter): + r""" + Format tokens as HTML 4 ```` tags within a ``
`` tag, wrapped
+    in a ``
`` tag. The ``
``'s CSS class can be set by the `cssclass` + option. + + If the `linenos` option is set to ``"table"``, the ``
`` is
+    additionally wrapped inside a ```` which has one row and two
+    cells: one containing the line numbers and one containing the code.
+    Example:
+
+    .. sourcecode:: html
+
+        
+
+ + +
+
1
+            2
+
+
def foo(bar):
+              pass
+            
+
+ + (whitespace added to improve clarity). + + Wrapping can be disabled using the `nowrap` option. + + A list of lines can be specified using the `hl_lines` option to make these + lines highlighted (as of Pygments 0.11). + + With the `full` option, a complete HTML 4 document is output, including + the style definitions inside a ``