diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/python/Pygments/py3/pygments/styles/material.py | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles/material.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/styles/material.py | 236 |
1 files changed, 118 insertions, 118 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/material.py b/contrib/python/Pygments/py3/pygments/styles/material.py index 84b14c3eca..c7012fe516 100644 --- a/contrib/python/Pygments/py3/pygments/styles/material.py +++ b/contrib/python/Pygments/py3/pygments/styles/material.py @@ -1,118 +1,118 @@ -""" - pygments.styles.material - ~~~~~~~~~~~~~~~~~~~~~~~~ - - Mimic the Material theme color scheme. - - https://github.com/material-theme/vsc-material-theme - - :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, Escape, \ - Error, Text, Number, Operator, Generic, Punctuation, Literal - -class MaterialStyle(Style): - """ - This style mimics the Material Theme color scheme. - """ - dark_teal = '#263238' - white= '#FFFFFF' - black= '#000000' - red= '#FF5370' - orange= '#F78C6C' - yellow= '#FFCB6B' - green= '#C3E88D' - cyan= '#89DDFF' - blue= '#82AAFF' - paleblue= '#B2CCD6' - purple= '#C792EA' - brown= '#C17E70' - pink= '#F07178' - violet= '#BB80B3' - foreground = '#EEFFFF' - faded = '#546E7A' - - default_style = "" - background_color = dark_teal - highlight_color = '#2C3B41' - line_number_color = '#37474F' - line_number_background_color = dark_teal - line_number_special_color = '#607A86' - line_number_special_background_color = dark_teal - - styles = { - Text: foreground, - Escape: cyan, - Error: red, - - Keyword: violet, - Keyword.Constant: cyan, - Keyword.Declaration: violet, - Keyword.Namespace: 'italic ' + cyan, - Keyword.Pseudo: cyan, - Keyword.Type: violet, - - Name: foreground, - Name.Attribute: violet, - Name.Builtin: blue, - Name.Builtin.Pseudo: cyan, - Name.Class: yellow, - Name.Constant: foreground, - Name.Decorator: blue, - Name.Entity: cyan, - Name.Exception: yellow, - Name.Function: blue, - Name.Function.Magic: blue, - Name.Label: blue, - Name.Property: yellow, - Name.Namespace: yellow, - Name.Other: foreground, - Name.Tag: red, - Name.Variable: cyan, - Name.Variable.Class: cyan, - Name.Variable.Global: cyan, - Name.Variable.Instance: cyan, - Name.Variable.Magic: blue, - - Literal: green, - Literal.Date: green, - - String: green, - String.Affix: violet, - String.Backtick: green, - String.Char: green, - String.Delimiter: foreground, - String.Doc: 'italic ' + faded, - String.Double: green, - String.Escape: foreground, - String.Heredoc: green, - String.Interpol: cyan, - String.Other: green, - String.Regex: cyan, - String.Single: green, - String.Symbol: cyan, - - Number: orange, - - Operator: cyan, - Operator.Word: 'italic ' + cyan, - - Punctuation: cyan, - - Comment: 'italic ' + faded, - - Generic: foreground, - Generic.Deleted: red, - Generic.Emph: cyan, - Generic.Error: red, - Generic.Heading: green, - Generic.Inserted: green, - Generic.Output: faded, - Generic.Prompt: yellow, - Generic.Strong: red, - Generic.Subheading: cyan, - Generic.Traceback: red, - } +""" + pygments.styles.material + ~~~~~~~~~~~~~~~~~~~~~~~~ + + Mimic the Material theme color scheme. + + https://github.com/material-theme/vsc-material-theme + + :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, Escape, \ + Error, Text, Number, Operator, Generic, Punctuation, Literal + +class MaterialStyle(Style): + """ + This style mimics the Material Theme color scheme. + """ + dark_teal = '#263238' + white= '#FFFFFF' + black= '#000000' + red= '#FF5370' + orange= '#F78C6C' + yellow= '#FFCB6B' + green= '#C3E88D' + cyan= '#89DDFF' + blue= '#82AAFF' + paleblue= '#B2CCD6' + purple= '#C792EA' + brown= '#C17E70' + pink= '#F07178' + violet= '#BB80B3' + foreground = '#EEFFFF' + faded = '#546E7A' + + default_style = "" + background_color = dark_teal + highlight_color = '#2C3B41' + line_number_color = '#37474F' + line_number_background_color = dark_teal + line_number_special_color = '#607A86' + line_number_special_background_color = dark_teal + + styles = { + Text: foreground, + Escape: cyan, + Error: red, + + Keyword: violet, + Keyword.Constant: cyan, + Keyword.Declaration: violet, + Keyword.Namespace: 'italic ' + cyan, + Keyword.Pseudo: cyan, + Keyword.Type: violet, + + Name: foreground, + Name.Attribute: violet, + Name.Builtin: blue, + Name.Builtin.Pseudo: cyan, + Name.Class: yellow, + Name.Constant: foreground, + Name.Decorator: blue, + Name.Entity: cyan, + Name.Exception: yellow, + Name.Function: blue, + Name.Function.Magic: blue, + Name.Label: blue, + Name.Property: yellow, + Name.Namespace: yellow, + Name.Other: foreground, + Name.Tag: red, + Name.Variable: cyan, + Name.Variable.Class: cyan, + Name.Variable.Global: cyan, + Name.Variable.Instance: cyan, + Name.Variable.Magic: blue, + + Literal: green, + Literal.Date: green, + + String: green, + String.Affix: violet, + String.Backtick: green, + String.Char: green, + String.Delimiter: foreground, + String.Doc: 'italic ' + faded, + String.Double: green, + String.Escape: foreground, + String.Heredoc: green, + String.Interpol: cyan, + String.Other: green, + String.Regex: cyan, + String.Single: green, + String.Symbol: cyan, + + Number: orange, + + Operator: cyan, + Operator.Word: 'italic ' + cyan, + + Punctuation: cyan, + + Comment: 'italic ' + faded, + + Generic: foreground, + Generic.Deleted: red, + Generic.Emph: cyan, + Generic.Error: red, + Generic.Heading: green, + Generic.Inserted: green, + Generic.Output: faded, + Generic.Prompt: yellow, + Generic.Strong: red, + Generic.Subheading: cyan, + Generic.Traceback: red, + } |