diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/Pygments/py2/pygments/styles | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py2/pygments/styles')
34 files changed, 421 insertions, 421 deletions
diff --git a/contrib/python/Pygments/py2/pygments/styles/__init__.py b/contrib/python/Pygments/py2/pygments/styles/__init__.py index 52afdb82ff..c0614718a2 100644 --- a/contrib/python/Pygments/py2/pygments/styles/__init__.py +++ b/contrib/python/Pygments/py2/pygments/styles/__init__.py @@ -5,7 +5,7 @@ Contains built-in styles. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -41,15 +41,15 @@ STYLE_MAP = { 'lovelace': 'lovelace::LovelaceStyle', 'algol': 'algol::AlgolStyle', 'algol_nu': 'algol_nu::Algol_NuStyle', - 'arduino': 'arduino::ArduinoStyle', - 'rainbow_dash': 'rainbow_dash::RainbowDashStyle', - 'abap': 'abap::AbapStyle', - 'solarized-dark': 'solarized::SolarizedDarkStyle', - 'solarized-light': 'solarized::SolarizedLightStyle', - 'sas': 'sas::SasStyle', - 'stata': 'stata_light::StataLightStyle', - 'stata-light': 'stata_light::StataLightStyle', - 'stata-dark': 'stata_dark::StataDarkStyle', + 'arduino': 'arduino::ArduinoStyle', + 'rainbow_dash': 'rainbow_dash::RainbowDashStyle', + 'abap': 'abap::AbapStyle', + 'solarized-dark': 'solarized::SolarizedDarkStyle', + 'solarized-light': 'solarized::SolarizedLightStyle', + 'sas': 'sas::SasStyle', + 'stata': 'stata_light::StataLightStyle', + 'stata-light': 'stata_light::StataLightStyle', + 'stata-dark': 'stata_dark::StataDarkStyle', 'inkpot': 'inkpot::InkPotStyle', } diff --git a/contrib/python/Pygments/py2/pygments/styles/abap.py b/contrib/python/Pygments/py2/pygments/styles/abap.py index f5b2fb1a2f..d0622d293a 100644 --- a/contrib/python/Pygments/py2/pygments/styles/abap.py +++ b/contrib/python/Pygments/py2/pygments/styles/abap.py @@ -1,29 +1,29 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.abap - ~~~~~~~~~~~~~~~~~~~~ - - ABAP workbench like style. - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator - - -class AbapStyle(Style): - default_style = "" - styles = { - Comment: 'italic #888', - Comment.Special: '#888', - Keyword: '#00f', - Operator.Word: '#00f', - Name: '#000', - Number: '#3af', - String: '#5a2', - - Error: '#F00', - } +# -*- coding: utf-8 -*- +""" + pygments.styles.abap + ~~~~~~~~~~~~~~~~~~~~ + + ABAP workbench like style. + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator + + +class AbapStyle(Style): + default_style = "" + styles = { + Comment: 'italic #888', + Comment.Special: '#888', + Keyword: '#00f', + Operator.Word: '#00f', + Name: '#000', + Number: '#3af', + String: '#5a2', + + Error: '#F00', + } diff --git a/contrib/python/Pygments/py2/pygments/styles/algol.py b/contrib/python/Pygments/py2/pygments/styles/algol.py index 9d23549136..d4d91870d7 100644 --- a/contrib/python/Pygments/py2/pygments/styles/algol.py +++ b/contrib/python/Pygments/py2/pygments/styles/algol.py @@ -26,7 +26,7 @@ [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>` - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/algol_nu.py b/contrib/python/Pygments/py2/pygments/styles/algol_nu.py index 62356a2ca7..09d69452d9 100644 --- a/contrib/python/Pygments/py2/pygments/styles/algol_nu.py +++ b/contrib/python/Pygments/py2/pygments/styles/algol_nu.py @@ -26,7 +26,7 @@ [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>` - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/arduino.py b/contrib/python/Pygments/py2/pygments/styles/arduino.py index 791cbeb763..160ca0947d 100644 --- a/contrib/python/Pygments/py2/pygments/styles/arduino.py +++ b/contrib/python/Pygments/py2/pygments/styles/arduino.py @@ -5,17 +5,17 @@ Arduino® Syntax highlighting style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic, Whitespace + Number, Operator, Generic, Whitespace class ArduinoStyle(Style): - u""" + u""" The Arduino® language style. This style is designed to highlight the Arduino source code, so exepect the best results with it. """ @@ -29,7 +29,7 @@ class ArduinoStyle(Style): Comment: "#95a5a6", # class: 'c' Comment.Multiline: "", # class: 'cm' - Comment.Preproc: "#728E00", # class: 'cp' + Comment.Preproc: "#728E00", # class: 'cp' Comment.Single: "", # class: 'c1' Comment.Special: "", # class: 'cs' @@ -38,15 +38,15 @@ class ArduinoStyle(Style): Keyword.Declaration: "", # class: 'kd' Keyword.Namespace: "", # class: 'kn' Keyword.Pseudo: "#00979D", # class: 'kp' - Keyword.Reserved: "#00979D", # class: 'kr' + Keyword.Reserved: "#00979D", # class: 'kr' Keyword.Type: "#00979D", # class: 'kt' - Operator: "#728E00", # class: 'o' + Operator: "#728E00", # class: 'o' Operator.Word: "", # class: 'ow' Name: "#434f54", # class: 'n' Name.Attribute: "", # class: 'na' - Name.Builtin: "#728E00", # class: 'nb' + Name.Builtin: "#728E00", # class: 'nb' Name.Builtin.Pseudo: "", # class: 'bp' Name.Class: "", # class: 'nc' Name.Constant: "", # class: 'no' @@ -64,7 +64,7 @@ class ArduinoStyle(Style): Name.Variable.Global: "", # class: 'vg' Name.Variable.Instance: "", # class: 'vi' - Number: "#8A7B52", # class: 'm' + Number: "#8A7B52", # class: 'm' Number.Float: "", # class: 'mf' Number.Hex: "", # class: 'mh' Number.Integer: "", # class: 'mi' diff --git a/contrib/python/Pygments/py2/pygments/styles/autumn.py b/contrib/python/Pygments/py2/pygments/styles/autumn.py index 91077ee497..d5ee045d43 100644 --- a/contrib/python/Pygments/py2/pygments/styles/autumn.py +++ b/contrib/python/Pygments/py2/pygments/styles/autumn.py @@ -5,7 +5,7 @@ A colorful style, inspired by the terminal highlighting style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/borland.py b/contrib/python/Pygments/py2/pygments/styles/borland.py index 5ae7c5a602..e8ec1229fb 100644 --- a/contrib/python/Pygments/py2/pygments/styles/borland.py +++ b/contrib/python/Pygments/py2/pygments/styles/borland.py @@ -5,7 +5,7 @@ Style similar to the style used in the Borland IDEs. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/bw.py b/contrib/python/Pygments/py2/pygments/styles/bw.py index b34a014fb7..54a653b6cb 100644 --- a/contrib/python/Pygments/py2/pygments/styles/bw.py +++ b/contrib/python/Pygments/py2/pygments/styles/bw.py @@ -5,7 +5,7 @@ Simple black/white only style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/colorful.py b/contrib/python/Pygments/py2/pygments/styles/colorful.py index 4542bdd50d..6aa493c9fe 100644 --- a/contrib/python/Pygments/py2/pygments/styles/colorful.py +++ b/contrib/python/Pygments/py2/pygments/styles/colorful.py @@ -5,7 +5,7 @@ A colorful style, inspired by CodeRay. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/default.py b/contrib/python/Pygments/py2/pygments/styles/default.py index b3b5760c03..c93d29fcf3 100644 --- a/contrib/python/Pygments/py2/pygments/styles/default.py +++ b/contrib/python/Pygments/py2/pygments/styles/default.py @@ -5,7 +5,7 @@ The default highlighting style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/emacs.py b/contrib/python/Pygments/py2/pygments/styles/emacs.py index 72c0c5f356..8408b09a5e 100644 --- a/contrib/python/Pygments/py2/pygments/styles/emacs.py +++ b/contrib/python/Pygments/py2/pygments/styles/emacs.py @@ -5,7 +5,7 @@ A highlighting style for Pygments, inspired by Emacs. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/friendly.py b/contrib/python/Pygments/py2/pygments/styles/friendly.py index e5413c417b..4184a8e3c4 100644 --- a/contrib/python/Pygments/py2/pygments/styles/friendly.py +++ b/contrib/python/Pygments/py2/pygments/styles/friendly.py @@ -5,7 +5,7 @@ A modern style based on the VIM pyte theme. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/fruity.py b/contrib/python/Pygments/py2/pygments/styles/fruity.py index 0c2f7e568a..7f5c0e3f53 100644 --- a/contrib/python/Pygments/py2/pygments/styles/fruity.py +++ b/contrib/python/Pygments/py2/pygments/styles/fruity.py @@ -5,7 +5,7 @@ pygments version of my "fruity" vim theme. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/igor.py b/contrib/python/Pygments/py2/pygments/styles/igor.py index bc42b6445b..70ee38bceb 100644 --- a/contrib/python/Pygments/py2/pygments/styles/igor.py +++ b/contrib/python/Pygments/py2/pygments/styles/igor.py @@ -5,7 +5,7 @@ Igor Pro default style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/lovelace.py b/contrib/python/Pygments/py2/pygments/styles/lovelace.py index 623e56bb53..65b641ec24 100644 --- a/contrib/python/Pygments/py2/pygments/styles/lovelace.py +++ b/contrib/python/Pygments/py2/pygments/styles/lovelace.py @@ -9,7 +9,7 @@ A desaturated, somewhat subdued style created for the Lovelace interactive learning environment. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -62,18 +62,18 @@ class LovelaceStyle(Style): Name.Entity: _ESCAPE_LIME, Name.Exception: _EXCEPT_YELLOW, Name.Function: _FUN_BROWN, - Name.Function.Magic: _DOC_ORANGE, + Name.Function.Magic: _DOC_ORANGE, Name.Label: _LABEL_CYAN, Name.Namespace: _LABEL_CYAN, Name.Tag: _KW_BLUE, Name.Variable: '#b04040', Name.Variable.Global:_EXCEPT_YELLOW, - Name.Variable.Magic: _DOC_ORANGE, + Name.Variable.Magic: _DOC_ORANGE, String: _STR_RED, - String.Affix: '#444444', + String.Affix: '#444444', String.Char: _OW_PURPLE, - String.Delimiter: _DOC_ORANGE, + String.Delimiter: _DOC_ORANGE, String.Doc: 'italic '+_DOC_ORANGE, String.Escape: _ESCAPE_LIME, String.Interpol: 'underline', diff --git a/contrib/python/Pygments/py2/pygments/styles/manni.py b/contrib/python/Pygments/py2/pygments/styles/manni.py index 4a9fed005a..bd14f6a174 100644 --- a/contrib/python/Pygments/py2/pygments/styles/manni.py +++ b/contrib/python/Pygments/py2/pygments/styles/manni.py @@ -8,7 +8,7 @@ This is a port of the style used in the `php port`_ of pygments by Manni. The style is called 'default' there. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/monokai.py b/contrib/python/Pygments/py2/pygments/styles/monokai.py index bccbacd896..c9db9f2218 100644 --- a/contrib/python/Pygments/py2/pygments/styles/monokai.py +++ b/contrib/python/Pygments/py2/pygments/styles/monokai.py @@ -7,7 +7,7 @@ http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/ - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/murphy.py b/contrib/python/Pygments/py2/pygments/styles/murphy.py index e98d9d23e4..e9b50d7a88 100644 --- a/contrib/python/Pygments/py2/pygments/styles/murphy.py +++ b/contrib/python/Pygments/py2/pygments/styles/murphy.py @@ -5,7 +5,7 @@ Murphy's style from CodeRay. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/native.py b/contrib/python/Pygments/py2/pygments/styles/native.py index bbbdaadf4b..a41852ac86 100644 --- a/contrib/python/Pygments/py2/pygments/styles/native.py +++ b/contrib/python/Pygments/py2/pygments/styles/native.py @@ -5,7 +5,7 @@ pygments version of my "native" vim theme. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/paraiso_dark.py b/contrib/python/Pygments/py2/pygments/styles/paraiso_dark.py index d71476dc83..50afc37ea2 100644 --- a/contrib/python/Pygments/py2/pygments/styles/paraiso_dark.py +++ b/contrib/python/Pygments/py2/pygments/styles/paraiso_dark.py @@ -9,7 +9,7 @@ Created with Base16 Builder by Chris Kempson (https://github.com/chriskempson/base16-builder). - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/paraiso_light.py b/contrib/python/Pygments/py2/pygments/styles/paraiso_light.py index c4f91e49f8..a5f357ba72 100644 --- a/contrib/python/Pygments/py2/pygments/styles/paraiso_light.py +++ b/contrib/python/Pygments/py2/pygments/styles/paraiso_light.py @@ -9,7 +9,7 @@ Created with Base16 Builder by Chris Kempson (https://github.com/chriskempson/base16-builder). - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/pastie.py b/contrib/python/Pygments/py2/pygments/styles/pastie.py index 6cdc3d483e..6b022025ba 100644 --- a/contrib/python/Pygments/py2/pygments/styles/pastie.py +++ b/contrib/python/Pygments/py2/pygments/styles/pastie.py @@ -7,7 +7,7 @@ .. _pastie: http://pastie.caboo.se/ - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/perldoc.py b/contrib/python/Pygments/py2/pygments/styles/perldoc.py index fd0a2eb940..a6c21e908a 100644 --- a/contrib/python/Pygments/py2/pygments/styles/perldoc.py +++ b/contrib/python/Pygments/py2/pygments/styles/perldoc.py @@ -7,7 +7,7 @@ .. _perldoc: http://perldoc.perl.org/ - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -41,7 +41,7 @@ class PerldocStyle(Style): Operator.Word: '#8B008B', Keyword: '#8B008B bold', - Keyword.Type: '#00688B', + Keyword.Type: '#00688B', Name.Class: '#008b45 bold', Name.Exception: '#008b45 bold', diff --git a/contrib/python/Pygments/py2/pygments/styles/rainbow_dash.py b/contrib/python/Pygments/py2/pygments/styles/rainbow_dash.py index 1bdbf8fa7f..c2c2c7c502 100644 --- a/contrib/python/Pygments/py2/pygments/styles/rainbow_dash.py +++ b/contrib/python/Pygments/py2/pygments/styles/rainbow_dash.py @@ -1,89 +1,89 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.rainbow_dash - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - A bright and colorful syntax highlighting `theme`. - - .. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import (Comment, Error, Generic, Name, Number, Operator, - String, Text, Whitespace, Keyword) - -BLUE_LIGHT = '#0080ff' -BLUE = '#2c5dcd' -GREEN = '#00cc66' -GREEN_LIGHT = '#ccffcc' -GREEN_NEON = '#00cc00' -GREY = '#aaaaaa' -GREY_LIGHT = '#cbcbcb' -GREY_DARK = '#4d4d4d' -PURPLE = '#5918bb' -RED = '#cc0000' -RED_DARK = '#c5060b' -RED_LIGHT = '#ffcccc' -RED_BRIGHT = '#ff0000' -WHITE = '#ffffff' -TURQUOISE = '#318495' -ORANGE = '#ff8000' - - -class RainbowDashStyle(Style): - """ - A bright and colorful syntax highlighting theme. - """ - - background_color = WHITE - - styles = { - Comment: 'italic {}'.format(BLUE_LIGHT), - Comment.Preproc: 'noitalic', - Comment.Special: 'bold', - - Error: 'bg:{} {}'.format(RED, WHITE), - - Generic.Deleted: 'border:{} bg:{}'.format(RED_DARK, RED_LIGHT), - Generic.Emph: 'italic', - Generic.Error: RED_BRIGHT, - Generic.Heading: 'bold {}'.format(BLUE), - Generic.Inserted: 'border:{} bg:{}'.format(GREEN_NEON, GREEN_LIGHT), - Generic.Output: GREY, - Generic.Prompt: 'bold {}'.format(BLUE), - Generic.Strong: 'bold', - Generic.Subheading: 'bold {}'.format(BLUE), - Generic.Traceback: RED_DARK, - - Keyword: 'bold {}'.format(BLUE), - Keyword.Pseudo: 'nobold', - Keyword.Type: PURPLE, - - Name.Attribute: 'italic {}'.format(BLUE), - Name.Builtin: 'bold {}'.format(PURPLE), - Name.Class: 'underline', - Name.Constant: TURQUOISE, - Name.Decorator: 'bold {}'.format(ORANGE), - Name.Entity: 'bold {}'.format(PURPLE), - Name.Exception: 'bold {}'.format(PURPLE), - Name.Function: 'bold {}'.format(ORANGE), - Name.Tag: 'bold {}'.format(BLUE), - - Number: 'bold {}'.format(PURPLE), - - Operator: BLUE, - Operator.Word: 'bold', - - String: GREEN, - String.Doc: 'italic', - String.Escape: 'bold {}'.format(RED_DARK), - String.Other: TURQUOISE, - String.Symbol: 'bold {}'.format(RED_DARK), - - Text: GREY_DARK, - - Whitespace: GREY_LIGHT - } +# -*- coding: utf-8 -*- +""" + pygments.styles.rainbow_dash + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + A bright and colorful syntax highlighting `theme`. + + .. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import (Comment, Error, Generic, Name, Number, Operator, + String, Text, Whitespace, Keyword) + +BLUE_LIGHT = '#0080ff' +BLUE = '#2c5dcd' +GREEN = '#00cc66' +GREEN_LIGHT = '#ccffcc' +GREEN_NEON = '#00cc00' +GREY = '#aaaaaa' +GREY_LIGHT = '#cbcbcb' +GREY_DARK = '#4d4d4d' +PURPLE = '#5918bb' +RED = '#cc0000' +RED_DARK = '#c5060b' +RED_LIGHT = '#ffcccc' +RED_BRIGHT = '#ff0000' +WHITE = '#ffffff' +TURQUOISE = '#318495' +ORANGE = '#ff8000' + + +class RainbowDashStyle(Style): + """ + A bright and colorful syntax highlighting theme. + """ + + background_color = WHITE + + styles = { + Comment: 'italic {}'.format(BLUE_LIGHT), + Comment.Preproc: 'noitalic', + Comment.Special: 'bold', + + Error: 'bg:{} {}'.format(RED, WHITE), + + Generic.Deleted: 'border:{} bg:{}'.format(RED_DARK, RED_LIGHT), + Generic.Emph: 'italic', + Generic.Error: RED_BRIGHT, + Generic.Heading: 'bold {}'.format(BLUE), + Generic.Inserted: 'border:{} bg:{}'.format(GREEN_NEON, GREEN_LIGHT), + Generic.Output: GREY, + Generic.Prompt: 'bold {}'.format(BLUE), + Generic.Strong: 'bold', + Generic.Subheading: 'bold {}'.format(BLUE), + Generic.Traceback: RED_DARK, + + Keyword: 'bold {}'.format(BLUE), + Keyword.Pseudo: 'nobold', + Keyword.Type: PURPLE, + + Name.Attribute: 'italic {}'.format(BLUE), + Name.Builtin: 'bold {}'.format(PURPLE), + Name.Class: 'underline', + Name.Constant: TURQUOISE, + Name.Decorator: 'bold {}'.format(ORANGE), + Name.Entity: 'bold {}'.format(PURPLE), + Name.Exception: 'bold {}'.format(PURPLE), + Name.Function: 'bold {}'.format(ORANGE), + Name.Tag: 'bold {}'.format(BLUE), + + Number: 'bold {}'.format(PURPLE), + + Operator: BLUE, + Operator.Word: 'bold', + + String: GREEN, + String.Doc: 'italic', + String.Escape: 'bold {}'.format(RED_DARK), + String.Other: TURQUOISE, + String.Symbol: 'bold {}'.format(RED_DARK), + + Text: GREY_DARK, + + Whitespace: GREY_LIGHT + } diff --git a/contrib/python/Pygments/py2/pygments/styles/rrt.py b/contrib/python/Pygments/py2/pygments/styles/rrt.py index 3bcd8b8e6b..d61085e0eb 100644 --- a/contrib/python/Pygments/py2/pygments/styles/rrt.py +++ b/contrib/python/Pygments/py2/pygments/styles/rrt.py @@ -5,7 +5,7 @@ pygments "rrt" theme, based on Zap and Emacs defaults. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/sas.py b/contrib/python/Pygments/py2/pygments/styles/sas.py index a9b606a7dd..3121aa535e 100644 --- a/contrib/python/Pygments/py2/pygments/styles/sas.py +++ b/contrib/python/Pygments/py2/pygments/styles/sas.py @@ -1,44 +1,44 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.sas - ~~~~~~~~~~~~~~~~~~~ - - Style inspired by SAS' enhanced program editor. Note This is not - meant to be a complete style. It's merely meant to mimic SAS' - program editor syntax highlighting. - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Other, Whitespace, Generic - - -class SasStyle(Style): - """ - Style inspired by SAS' enhanced program editor. Note This is not - meant to be a complete style. It's merely meant to mimic SAS' - program editor syntax highlighting. - """ - - default_style = '' - - styles = { - Whitespace: '#bbbbbb', - Comment: 'italic #008800', - String: '#800080', - Number: 'bold #2e8b57', - Other: 'bg:#ffffe0', - Keyword: '#2c2cff', - Keyword.Reserved: 'bold #353580', - Keyword.Constant: 'bold', - Name.Builtin: '#2c2cff', - Name.Function: 'bold italic', - Name.Variable: 'bold #2c2cff', - Generic: '#2c2cff', - Generic.Emph: '#008800', - Generic.Error: '#d30202', - Error: 'bg:#e3d2d2 #a61717' - } +# -*- coding: utf-8 -*- +""" + pygments.styles.sas + ~~~~~~~~~~~~~~~~~~~ + + Style inspired by SAS' enhanced program editor. Note This is not + meant to be a complete style. It's merely meant to mimic SAS' + program editor syntax highlighting. + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Other, Whitespace, Generic + + +class SasStyle(Style): + """ + Style inspired by SAS' enhanced program editor. Note This is not + meant to be a complete style. It's merely meant to mimic SAS' + program editor syntax highlighting. + """ + + default_style = '' + + styles = { + Whitespace: '#bbbbbb', + Comment: 'italic #008800', + String: '#800080', + Number: 'bold #2e8b57', + Other: 'bg:#ffffe0', + Keyword: '#2c2cff', + Keyword.Reserved: 'bold #353580', + Keyword.Constant: 'bold', + Name.Builtin: '#2c2cff', + Name.Function: 'bold italic', + Name.Variable: 'bold #2c2cff', + Generic: '#2c2cff', + Generic.Emph: '#008800', + Generic.Error: '#d30202', + Error: 'bg:#e3d2d2 #a61717' + } diff --git a/contrib/python/Pygments/py2/pygments/styles/solarized.py b/contrib/python/Pygments/py2/pygments/styles/solarized.py index b7d0f06f2a..7d4b113d9c 100644 --- a/contrib/python/Pygments/py2/pygments/styles/solarized.py +++ b/contrib/python/Pygments/py2/pygments/styles/solarized.py @@ -1,130 +1,130 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.solarized - ~~~~~~~~~~~~~~~~~~~~~~~~~ - - Solarized by Camil Staps - - A Pygments style for the Solarized themes (licensed under MIT). - See: https://github.com/altercation/solarized - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \ - Operator, String, Token - - -def make_style(colors): - return { - Token: colors['base0'], - - Comment: 'italic ' + colors['base01'], - Comment.Hashbang: colors['base01'], - Comment.Multiline: colors['base01'], - Comment.Preproc: 'noitalic ' + colors['magenta'], - Comment.PreprocFile: 'noitalic ' + colors['base01'], - - Keyword: colors['green'], - Keyword.Constant: colors['cyan'], - Keyword.Declaration: colors['cyan'], - Keyword.Namespace: colors['orange'], - Keyword.Type: colors['yellow'], - - Operator: colors['base01'], - Operator.Word: colors['green'], - - Name.Builtin: colors['blue'], - Name.Builtin.Pseudo: colors['blue'], - Name.Class: colors['blue'], - Name.Constant: colors['blue'], - Name.Decorator: colors['blue'], - Name.Entity: colors['blue'], - Name.Exception: colors['blue'], - Name.Function: colors['blue'], - Name.Function.Magic: colors['blue'], - Name.Label: colors['blue'], - Name.Namespace: colors['blue'], - Name.Tag: colors['blue'], - Name.Variable: colors['blue'], - Name.Variable.Global:colors['blue'], - Name.Variable.Magic: colors['blue'], - - String: colors['cyan'], - String.Doc: colors['base01'], - String.Regex: colors['orange'], - - Number: colors['cyan'], - - Generic.Deleted: colors['red'], - Generic.Emph: 'italic', - Generic.Error: colors['red'], - Generic.Heading: 'bold', - Generic.Subheading: 'underline', - Generic.Inserted: colors['green'], - Generic.Strong: 'bold', - Generic.Traceback: colors['blue'], - - Error: 'bg:' + colors['red'], - } - - -DARK_COLORS = { - 'base03': '#002b36', - 'base02': '#073642', - 'base01': '#586e75', - 'base00': '#657b83', - 'base0': '#839496', - 'base1': '#93a1a1', - 'base2': '#eee8d5', - 'base3': '#fdf6e3', - 'yellow': '#b58900', - 'orange': '#cb4b16', - 'red': '#dc322f', - 'magenta': '#d33682', - 'violet': '#6c71c4', - 'blue': '#268bd2', - 'cyan': '#2aa198', - 'green': '#859900', -} - -LIGHT_COLORS = { - 'base3': '#002b36', - 'base2': '#073642', - 'base1': '#586e75', - 'base0': '#657b83', - 'base00': '#839496', - 'base01': '#93a1a1', - 'base02': '#eee8d5', - 'base03': '#fdf6e3', - 'yellow': '#b58900', - 'orange': '#cb4b16', - 'red': '#dc322f', - 'magenta': '#d33682', - 'violet': '#6c71c4', - 'blue': '#268bd2', - 'cyan': '#2aa198', - 'green': '#859900', -} - - -class SolarizedDarkStyle(Style): - """ - The solarized style, dark. - """ - - styles = make_style(DARK_COLORS) - background_color = DARK_COLORS['base03'] - highlight_color = DARK_COLORS['base02'] - - -class SolarizedLightStyle(SolarizedDarkStyle): - """ - The solarized style, light. - """ - - styles = make_style(LIGHT_COLORS) - background_color = LIGHT_COLORS['base03'] - highlight_color = LIGHT_COLORS['base02'] +# -*- coding: utf-8 -*- +""" + pygments.styles.solarized + ~~~~~~~~~~~~~~~~~~~~~~~~~ + + Solarized by Camil Staps + + A Pygments style for the Solarized themes (licensed under MIT). + See: https://github.com/altercation/solarized + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \ + Operator, String, Token + + +def make_style(colors): + return { + Token: colors['base0'], + + Comment: 'italic ' + colors['base01'], + Comment.Hashbang: colors['base01'], + Comment.Multiline: colors['base01'], + Comment.Preproc: 'noitalic ' + colors['magenta'], + Comment.PreprocFile: 'noitalic ' + colors['base01'], + + Keyword: colors['green'], + Keyword.Constant: colors['cyan'], + Keyword.Declaration: colors['cyan'], + Keyword.Namespace: colors['orange'], + Keyword.Type: colors['yellow'], + + Operator: colors['base01'], + Operator.Word: colors['green'], + + Name.Builtin: colors['blue'], + Name.Builtin.Pseudo: colors['blue'], + Name.Class: colors['blue'], + Name.Constant: colors['blue'], + Name.Decorator: colors['blue'], + Name.Entity: colors['blue'], + Name.Exception: colors['blue'], + Name.Function: colors['blue'], + Name.Function.Magic: colors['blue'], + Name.Label: colors['blue'], + Name.Namespace: colors['blue'], + Name.Tag: colors['blue'], + Name.Variable: colors['blue'], + Name.Variable.Global:colors['blue'], + Name.Variable.Magic: colors['blue'], + + String: colors['cyan'], + String.Doc: colors['base01'], + String.Regex: colors['orange'], + + Number: colors['cyan'], + + Generic.Deleted: colors['red'], + Generic.Emph: 'italic', + Generic.Error: colors['red'], + Generic.Heading: 'bold', + Generic.Subheading: 'underline', + Generic.Inserted: colors['green'], + Generic.Strong: 'bold', + Generic.Traceback: colors['blue'], + + Error: 'bg:' + colors['red'], + } + + +DARK_COLORS = { + 'base03': '#002b36', + 'base02': '#073642', + 'base01': '#586e75', + 'base00': '#657b83', + 'base0': '#839496', + 'base1': '#93a1a1', + 'base2': '#eee8d5', + 'base3': '#fdf6e3', + 'yellow': '#b58900', + 'orange': '#cb4b16', + 'red': '#dc322f', + 'magenta': '#d33682', + 'violet': '#6c71c4', + 'blue': '#268bd2', + 'cyan': '#2aa198', + 'green': '#859900', +} + +LIGHT_COLORS = { + 'base3': '#002b36', + 'base2': '#073642', + 'base1': '#586e75', + 'base0': '#657b83', + 'base00': '#839496', + 'base01': '#93a1a1', + 'base02': '#eee8d5', + 'base03': '#fdf6e3', + 'yellow': '#b58900', + 'orange': '#cb4b16', + 'red': '#dc322f', + 'magenta': '#d33682', + 'violet': '#6c71c4', + 'blue': '#268bd2', + 'cyan': '#2aa198', + 'green': '#859900', +} + + +class SolarizedDarkStyle(Style): + """ + The solarized style, dark. + """ + + styles = make_style(DARK_COLORS) + background_color = DARK_COLORS['base03'] + highlight_color = DARK_COLORS['base02'] + + +class SolarizedLightStyle(SolarizedDarkStyle): + """ + The solarized style, light. + """ + + styles = make_style(LIGHT_COLORS) + background_color = LIGHT_COLORS['base03'] + highlight_color = LIGHT_COLORS['base02'] diff --git a/contrib/python/Pygments/py2/pygments/styles/stata_dark.py b/contrib/python/Pygments/py2/pygments/styles/stata_dark.py index 701dbcdb9d..122b3d77a1 100644 --- a/contrib/python/Pygments/py2/pygments/styles/stata_dark.py +++ b/contrib/python/Pygments/py2/pygments/styles/stata_dark.py @@ -1,41 +1,41 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.stata_dark - ~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Dark style inspired by Stata's do-file editor. Note this is not - meant to be a complete style, just for Stata's file formats. - - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Whitespace, Generic, Text - - -class StataDarkStyle(Style): - - default_style = '' - - background_color = "#232629" - highlight_color = "#49483e" - - styles = { - Whitespace: '#bbbbbb', - Error: 'bg:#e3d2d2 #a61717', - Text: '#cccccc', - String: '#51cc99', - Number: '#4FB8CC', - Operator: '', - Name.Function: '#6a6aff', - Name.Other: '#e2828e', - Keyword: 'bold #7686bb', - Keyword.Constant: '', - Comment: 'italic #777777', - Name.Variable: 'bold #7AB4DB', - Name.Variable.Global: 'bold #BE646C', - Generic.Prompt: '#ffffff', - } +# -*- coding: utf-8 -*- +""" + pygments.styles.stata_dark + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Dark style inspired by Stata's do-file editor. Note this is not + meant to be a complete style, just for Stata's file formats. + + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Whitespace, Generic, Text + + +class StataDarkStyle(Style): + + default_style = '' + + background_color = "#232629" + highlight_color = "#49483e" + + styles = { + Whitespace: '#bbbbbb', + Error: 'bg:#e3d2d2 #a61717', + Text: '#cccccc', + String: '#51cc99', + Number: '#4FB8CC', + Operator: '', + Name.Function: '#6a6aff', + Name.Other: '#e2828e', + Keyword: 'bold #7686bb', + Keyword.Constant: '', + Comment: 'italic #777777', + Name.Variable: 'bold #7AB4DB', + Name.Variable.Global: 'bold #BE646C', + Generic.Prompt: '#ffffff', + } diff --git a/contrib/python/Pygments/py2/pygments/styles/stata_light.py b/contrib/python/Pygments/py2/pygments/styles/stata_light.py index 08583dd7d7..41009a18ed 100644 --- a/contrib/python/Pygments/py2/pygments/styles/stata_light.py +++ b/contrib/python/Pygments/py2/pygments/styles/stata_light.py @@ -1,39 +1,39 @@ -# -*- coding: utf-8 -*- -""" - pygments.styles.stata_light - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Light Style inspired by Stata's do-file editor. Note this is not - meant to be a complete style, just for Stata's file formats. - - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Whitespace, Text - - -class StataLightStyle(Style): - """ - Light mode style inspired by Stata's do-file editor. This is not - meant to be a complete style, just for use with Stata. - """ - - default_style = '' - styles = { - Text: '#111111', - Whitespace: '#bbbbbb', - Error: 'bg:#e3d2d2 #a61717', - String: '#7a2424', - Number: '#2c2cff', - Operator: '', - Name.Function: '#2c2cff', - Name.Other: '#be646c', - Keyword: 'bold #353580', - Keyword.Constant: '', - Comment: 'italic #008800', - Name.Variable: 'bold #35baba', - Name.Variable.Global: 'bold #b5565e', - } +# -*- coding: utf-8 -*- +""" + pygments.styles.stata_light + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Light Style inspired by Stata's do-file editor. Note this is not + meant to be a complete style, just for Stata's file formats. + + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Whitespace, Text + + +class StataLightStyle(Style): + """ + Light mode style inspired by Stata's do-file editor. This is not + meant to be a complete style, just for use with Stata. + """ + + default_style = '' + styles = { + Text: '#111111', + Whitespace: '#bbbbbb', + Error: 'bg:#e3d2d2 #a61717', + String: '#7a2424', + Number: '#2c2cff', + Operator: '', + Name.Function: '#2c2cff', + Name.Other: '#be646c', + Keyword: 'bold #353580', + Keyword.Constant: '', + Comment: 'italic #008800', + Name.Variable: 'bold #35baba', + Name.Variable.Global: 'bold #b5565e', + } diff --git a/contrib/python/Pygments/py2/pygments/styles/tango.py b/contrib/python/Pygments/py2/pygments/styles/tango.py index e83da3f4f3..5205244cf1 100644 --- a/contrib/python/Pygments/py2/pygments/styles/tango.py +++ b/contrib/python/Pygments/py2/pygments/styles/tango.py @@ -33,7 +33,7 @@ have been chosen to have the same style. Similarly, keywords (Keyword.*), and Operator.Word (and, or, in) have been assigned the same style. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/trac.py b/contrib/python/Pygments/py2/pygments/styles/trac.py index de021cea9f..1e96584db2 100644 --- a/contrib/python/Pygments/py2/pygments/styles/trac.py +++ b/contrib/python/Pygments/py2/pygments/styles/trac.py @@ -5,7 +5,7 @@ Port of the default trac highlighter design. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/vim.py b/contrib/python/Pygments/py2/pygments/styles/vim.py index c8531092e6..954e91d5a0 100644 --- a/contrib/python/Pygments/py2/pygments/styles/vim.py +++ b/contrib/python/Pygments/py2/pygments/styles/vim.py @@ -5,7 +5,7 @@ A highlighting style for Pygments, inspired by vim. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/vs.py b/contrib/python/Pygments/py2/pygments/styles/vs.py index c38d5b8373..111e4aed07 100644 --- a/contrib/python/Pygments/py2/pygments/styles/vs.py +++ b/contrib/python/Pygments/py2/pygments/styles/vs.py @@ -5,7 +5,7 @@ Simple style with MS Visual Studio colors. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ diff --git a/contrib/python/Pygments/py2/pygments/styles/xcode.py b/contrib/python/Pygments/py2/pygments/styles/xcode.py index 9d4ffd540b..7e87d0837f 100644 --- a/contrib/python/Pygments/py2/pygments/styles/xcode.py +++ b/contrib/python/Pygments/py2/pygments/styles/xcode.py @@ -5,7 +5,7 @@ Style similar to the `Xcode` default theme. - :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ |