diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/python/Pygments/py3/pygments/styles | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles')
10 files changed, 376 insertions, 376 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/__init__.py b/contrib/python/Pygments/py3/pygments/styles/__init__.py index d75de1a521..c4231f80a2 100644 --- a/contrib/python/Pygments/py3/pygments/styles/__init__.py +++ b/contrib/python/Pygments/py3/pygments/styles/__init__.py @@ -42,15 +42,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', 'zenburn': 'zenburn::ZenburnStyle', 'gruvbox-dark': 'gruvbox::GruvboxDarkStyle', diff --git a/contrib/python/Pygments/py3/pygments/styles/abap.py b/contrib/python/Pygments/py3/pygments/styles/abap.py index 1e51e05021..24c8a01a49 100644 --- a/contrib/python/Pygments/py3/pygments/styles/abap.py +++ b/contrib/python/Pygments/py3/pygments/styles/abap.py @@ -1,28 +1,28 @@ -""" - pygments.styles.abap - ~~~~~~~~~~~~~~~~~~~~ - - ABAP workbench like style. - +""" + pygments.styles.abap + ~~~~~~~~~~~~~~~~~~~~ + + ABAP workbench like style. + :copyright: Copyright 2006-2021 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', - } + :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/py3/pygments/styles/arduino.py b/contrib/python/Pygments/py3/pygments/styles/arduino.py index 4dfe0f3ce2..0a59bfb9bb 100644 --- a/contrib/python/Pygments/py3/pygments/styles/arduino.py +++ b/contrib/python/Pygments/py3/pygments/styles/arduino.py @@ -10,7 +10,7 @@ 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): @@ -28,7 +28,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' @@ -37,15 +37,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' @@ -63,7 +63,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/py3/pygments/styles/lovelace.py b/contrib/python/Pygments/py3/pygments/styles/lovelace.py index ec8d2a9106..48bfbf4477 100644 --- a/contrib/python/Pygments/py3/pygments/styles/lovelace.py +++ b/contrib/python/Pygments/py3/pygments/styles/lovelace.py @@ -61,18 +61,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/py3/pygments/styles/perldoc.py b/contrib/python/Pygments/py3/pygments/styles/perldoc.py index 5eae210fd8..2f4be25fc0 100644 --- a/contrib/python/Pygments/py3/pygments/styles/perldoc.py +++ b/contrib/python/Pygments/py3/pygments/styles/perldoc.py @@ -40,7 +40,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/py3/pygments/styles/rainbow_dash.py b/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py index 3996332a25..692071d6c0 100644 --- a/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py +++ b/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py @@ -1,88 +1,88 @@ -""" - pygments.styles.rainbow_dash - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - A bright and colorful syntax highlighting `theme`. - - .. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle - +""" + pygments.styles.rainbow_dash + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + A bright and colorful syntax highlighting `theme`. + + .. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle + :copyright: Copyright 2006-2021 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 - } + :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/py3/pygments/styles/sas.py b/contrib/python/Pygments/py3/pygments/styles/sas.py index ed5eb2666a..5fc833789b 100644 --- a/contrib/python/Pygments/py3/pygments/styles/sas.py +++ b/contrib/python/Pygments/py3/pygments/styles/sas.py @@ -1,43 +1,43 @@ -""" - 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. - +""" + 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-2021 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', + :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 #2c8553', - 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' - } + 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/py3/pygments/styles/solarized.py b/contrib/python/Pygments/py3/pygments/styles/solarized.py index 1e051eb477..bdd7f39ce2 100644 --- a/contrib/python/Pygments/py3/pygments/styles/solarized.py +++ b/contrib/python/Pygments/py3/pygments/styles/solarized.py @@ -1,136 +1,136 @@ -""" - pygments.styles.solarized - ~~~~~~~~~~~~~~~~~~~~~~~~~ - - Solarized by Camil Staps - - A Pygments style for the Solarized themes (licensed under MIT). - See: https://github.com/altercation/solarized - +""" + 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-2021 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'], - + :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: colors['base0'], - Generic.Deleted: colors['red'], - Generic.Emph: 'italic', - Generic.Error: colors['red'], - Generic.Heading: 'bold', - Generic.Subheading: 'underline', - Generic.Inserted: colors['green'], + Generic.Deleted: colors['red'], + Generic.Emph: 'italic', + Generic.Error: colors['red'], + Generic.Heading: 'bold', + Generic.Subheading: 'underline', + Generic.Inserted: colors['green'], Generic.Output: colors['base0'], Generic.Prompt: 'bold ' + colors['blue'], - 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'] + 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'] line_number_color = DARK_COLORS['base01'] line_number_background_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'] + + +class SolarizedLightStyle(SolarizedDarkStyle): + """ + The solarized style, light. + """ + + styles = make_style(LIGHT_COLORS) + background_color = LIGHT_COLORS['base03'] + highlight_color = LIGHT_COLORS['base02'] line_number_color = LIGHT_COLORS['base01'] line_number_background_color = LIGHT_COLORS['base02'] diff --git a/contrib/python/Pygments/py3/pygments/styles/stata_dark.py b/contrib/python/Pygments/py3/pygments/styles/stata_dark.py index 86d23be002..7807c02788 100644 --- a/contrib/python/Pygments/py3/pygments/styles/stata_dark.py +++ b/contrib/python/Pygments/py3/pygments/styles/stata_dark.py @@ -1,40 +1,40 @@ -""" - 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. - - +""" + 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-2021 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.style import Style + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style from pygments.token import Token, Keyword, Name, Comment, String, Error, \ Number, Operator, Whitespace, Generic - - -class StataDarkStyle(Style): - - default_style = '' - - background_color = "#232629" - highlight_color = "#49483e" - - styles = { + + +class StataDarkStyle(Style): + + default_style = '' + + background_color = "#232629" + highlight_color = "#49483e" + + styles = { Token: '#cccccc', - Whitespace: '#bbbbbb', - Error: 'bg:#e3d2d2 #a61717', - 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', - } + Whitespace: '#bbbbbb', + Error: 'bg:#e3d2d2 #a61717', + 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/py3/pygments/styles/stata_light.py b/contrib/python/Pygments/py3/pygments/styles/stata_light.py index 9dead703dc..30d70108b0 100644 --- a/contrib/python/Pygments/py3/pygments/styles/stata_light.py +++ b/contrib/python/Pygments/py3/pygments/styles/stata_light.py @@ -1,38 +1,38 @@ -""" - 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. - +""" + 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-2021 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', - } + :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', + } |