diff options
| author | robot-contrib <[email protected]> | 2023-12-09 00:19:25 +0300 |
|---|---|---|
| committer | robot-contrib <[email protected]> | 2023-12-09 00:50:41 +0300 |
| commit | 83b8a2f9228353759e59a093cb3c1270ea2c9d5b (patch) | |
| tree | a90f4f91780c0613bea19f33ff8af8e93a335e8b /contrib/python/Pygments/py3/pygments/styles | |
| parent | 460528e80f26d04487dc242b7333d45bbeb43a4d (diff) | |
Update contrib/python/Pygments/py3 to 2.17.2
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles')
47 files changed, 451 insertions, 246 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/__init__.py b/contrib/python/Pygments/py3/pygments/styles/__init__.py index b5b9de79794..75ac30bb988 100644 --- a/contrib/python/Pygments/py3/pygments/styles/__init__.py +++ b/contrib/python/Pygments/py3/pygments/styles/__init__.py @@ -10,60 +10,15 @@ from pygments.plugin import find_plugin_styles from pygments.util import ClassNotFound +from pygments.styles._mapping import STYLES #: A dictionary of built-in styles, mapping style names to #: ``'submodule::classname'`` strings. -STYLE_MAP = { - 'abap': 'abap::AbapStyle', - 'algol_nu': 'algol_nu::Algol_NuStyle', - 'algol': 'algol::AlgolStyle', - 'arduino': 'arduino::ArduinoStyle', - 'autumn': 'autumn::AutumnStyle', - 'borland': 'borland::BorlandStyle', - 'bw': 'bw::BlackWhiteStyle', - 'colorful': 'colorful::ColorfulStyle', - 'default': 'default::DefaultStyle', - 'dracula': 'dracula::DraculaStyle', - 'emacs': 'emacs::EmacsStyle', - 'friendly_grayscale': 'friendly_grayscale::FriendlyGrayscaleStyle', - 'friendly': 'friendly::FriendlyStyle', - 'fruity': 'fruity::FruityStyle', - 'github-dark': 'gh_dark::GhDarkStyle', - 'gruvbox-dark': 'gruvbox::GruvboxDarkStyle', - 'gruvbox-light': 'gruvbox::GruvboxLightStyle', - 'igor': 'igor::IgorStyle', - 'inkpot': 'inkpot::InkPotStyle', - 'lightbulb': 'lightbulb::LightbulbStyle', - 'lilypond': 'lilypond::LilyPondStyle', - 'lovelace': 'lovelace::LovelaceStyle', - 'manni': 'manni::ManniStyle', - 'material': 'material::MaterialStyle', - 'monokai': 'monokai::MonokaiStyle', - 'murphy': 'murphy::MurphyStyle', - 'native': 'native::NativeStyle', - 'nord-darker': 'nord::NordDarkerStyle', - 'nord': 'nord::NordStyle', - 'one-dark': 'onedark::OneDarkStyle', - 'paraiso-dark': 'paraiso_dark::ParaisoDarkStyle', - 'paraiso-light': 'paraiso_light::ParaisoLightStyle', - 'pastie': 'pastie::PastieStyle', - 'perldoc': 'perldoc::PerldocStyle', - 'rainbow_dash': 'rainbow_dash::RainbowDashStyle', - 'rrt': 'rrt::RrtStyle', - 'sas': 'sas::SasStyle', - 'solarized-dark': 'solarized::SolarizedDarkStyle', - 'solarized-light': 'solarized::SolarizedLightStyle', - 'staroffice': 'staroffice::StarofficeStyle', - 'stata-dark': 'stata_dark::StataDarkStyle', - 'stata-light': 'stata_light::StataLightStyle', - 'stata': 'stata_light::StataLightStyle', - 'tango': 'tango::TangoStyle', - 'trac': 'trac::TracStyle', - 'vim': 'vim::VimStyle', - 'vs': 'vs::VisualStudioStyle', - 'xcode': 'xcode::XcodeStyle', - 'zenburn': 'zenburn::ZenburnStyle' -} +#: This list is deprecated. Use `pygments.styles.STYLES` instead +STYLE_MAP = {v[1]: v[0].split('.')[-1] + '::' + k for k, v in STYLES.items()} + +#: Internal reverse mapping to make `get_style_by_name` more efficient +_STYLE_NAME_TO_MODULE_MAP = {v[1]: (v[0], k) for k, v in STYLES.items()} def get_style_by_name(name): @@ -74,8 +29,8 @@ def get_style_by_name(name): Will raise :exc:`pygments.util.ClassNotFound` if no style of that name is found. """ - if name in STYLE_MAP: - mod, cls = STYLE_MAP[name].split('::') + if name in _STYLE_NAME_TO_MODULE_MAP: + mod, cls = _STYLE_NAME_TO_MODULE_MAP[name] builtin = "yes" else: for found_name, style in find_plugin_styles(): @@ -83,14 +38,15 @@ def get_style_by_name(name): return style # perhaps it got dropped into our styles package builtin = "" - mod = name + mod = 'pygments.styles.' + name cls = name.title() + "Style" try: - mod = __import__('pygments.styles.' + mod, None, None, [cls]) + mod = __import__(mod, None, None, [cls]) except ImportError: raise ClassNotFound("Could not find style module %r" % mod + - (builtin and ", though it should be builtin") + ".") + (builtin and ", though it should be builtin") + + ".") try: return getattr(mod, cls) except AttributeError: @@ -99,6 +55,7 @@ def get_style_by_name(name): def get_all_styles(): """Return a generator for all styles by name, both builtin and plugin.""" - yield from STYLE_MAP + for v in STYLES.values(): + yield v[1] for name, _ in find_plugin_styles(): yield name diff --git a/contrib/python/Pygments/py3/pygments/styles/_mapping.py b/contrib/python/Pygments/py3/pygments/styles/_mapping.py new file mode 100644 index 00000000000..04c7ddfbb04 --- /dev/null +++ b/contrib/python/Pygments/py3/pygments/styles/_mapping.py @@ -0,0 +1,53 @@ +# Automatically generated by scripts/gen_mapfiles.py. +# DO NOT EDIT BY HAND; run `tox -e mapfiles` instead. + +STYLES = { + 'AbapStyle': ('pygments.styles.abap', 'abap', ()), + 'AlgolStyle': ('pygments.styles.algol', 'algol', ()), + 'Algol_NuStyle': ('pygments.styles.algol_nu', 'algol_nu', ()), + 'ArduinoStyle': ('pygments.styles.arduino', 'arduino', ()), + 'AutumnStyle': ('pygments.styles.autumn', 'autumn', ()), + 'BlackWhiteStyle': ('pygments.styles.bw', 'bw', ()), + 'BorlandStyle': ('pygments.styles.borland', 'borland', ()), + 'ColorfulStyle': ('pygments.styles.colorful', 'colorful', ()), + 'DefaultStyle': ('pygments.styles.default', 'default', ()), + 'DraculaStyle': ('pygments.styles.dracula', 'dracula', ()), + 'EmacsStyle': ('pygments.styles.emacs', 'emacs', ()), + 'FriendlyGrayscaleStyle': ('pygments.styles.friendly_grayscale', 'friendly_grayscale', ()), + 'FriendlyStyle': ('pygments.styles.friendly', 'friendly', ()), + 'FruityStyle': ('pygments.styles.fruity', 'fruity', ()), + 'GhDarkStyle': ('pygments.styles.gh_dark', 'github-dark', ()), + 'GruvboxDarkStyle': ('pygments.styles.gruvbox', 'gruvbox-dark', ()), + 'GruvboxLightStyle': ('pygments.styles.gruvbox', 'gruvbox-light', ()), + 'IgorStyle': ('pygments.styles.igor', 'igor', ()), + 'InkPotStyle': ('pygments.styles.inkpot', 'inkpot', ()), + 'LightbulbStyle': ('pygments.styles.lightbulb', 'lightbulb', ()), + 'LilyPondStyle': ('pygments.styles.lilypond', 'lilypond', ()), + 'LovelaceStyle': ('pygments.styles.lovelace', 'lovelace', ()), + 'ManniStyle': ('pygments.styles.manni', 'manni', ()), + 'MaterialStyle': ('pygments.styles.material', 'material', ()), + 'MonokaiStyle': ('pygments.styles.monokai', 'monokai', ()), + 'MurphyStyle': ('pygments.styles.murphy', 'murphy', ()), + 'NativeStyle': ('pygments.styles.native', 'native', ()), + 'NordDarkerStyle': ('pygments.styles.nord', 'nord-darker', ()), + 'NordStyle': ('pygments.styles.nord', 'nord', ()), + 'OneDarkStyle': ('pygments.styles.onedark', 'one-dark', ()), + 'ParaisoDarkStyle': ('pygments.styles.paraiso_dark', 'paraiso-dark', ()), + 'ParaisoLightStyle': ('pygments.styles.paraiso_light', 'paraiso-light', ()), + 'PastieStyle': ('pygments.styles.pastie', 'pastie', ()), + 'PerldocStyle': ('pygments.styles.perldoc', 'perldoc', ()), + 'RainbowDashStyle': ('pygments.styles.rainbow_dash', 'rainbow_dash', ()), + 'RrtStyle': ('pygments.styles.rrt', 'rrt', ()), + 'SasStyle': ('pygments.styles.sas', 'sas', ()), + 'SolarizedDarkStyle': ('pygments.styles.solarized', 'solarized-dark', ()), + 'SolarizedLightStyle': ('pygments.styles.solarized', 'solarized-light', ()), + 'StarofficeStyle': ('pygments.styles.staroffice', 'staroffice', ()), + 'StataDarkStyle': ('pygments.styles.stata_dark', 'stata-dark', ()), + 'StataLightStyle': ('pygments.styles.stata_light', 'stata-light', ()), + 'TangoStyle': ('pygments.styles.tango', 'tango', ()), + 'TracStyle': ('pygments.styles.trac', 'trac', ()), + 'VimStyle': ('pygments.styles.vim', 'vim', ()), + 'VisualStudioStyle': ('pygments.styles.vs', 'vs', ()), + 'XcodeStyle': ('pygments.styles.xcode', 'xcode', ()), + 'ZenburnStyle': ('pygments.styles.zenburn', 'zenburn', ()), +} diff --git a/contrib/python/Pygments/py3/pygments/styles/abap.py b/contrib/python/Pygments/py3/pygments/styles/abap.py index cdb8e9e75d3..ab322df9cf6 100644 --- a/contrib/python/Pygments/py3/pygments/styles/abap.py +++ b/contrib/python/Pygments/py3/pygments/styles/abap.py @@ -13,7 +13,11 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator +__all__ = ['AbapStyle'] + + class AbapStyle(Style): + name = 'abap' styles = { Comment: 'italic #888', diff --git a/contrib/python/Pygments/py3/pygments/styles/algol.py b/contrib/python/Pygments/py3/pygments/styles/algol.py index 7b586f8cc8e..83319e0ab7e 100644 --- a/contrib/python/Pygments/py3/pygments/styles/algol.py +++ b/contrib/python/Pygments/py3/pygments/styles/algol.py @@ -33,7 +33,11 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, Operator +__all__ = ['AlgolStyle'] + + class AlgolStyle(Style): + name = 'algol' background_color = "#ffffff" diff --git a/contrib/python/Pygments/py3/pygments/styles/algol_nu.py b/contrib/python/Pygments/py3/pygments/styles/algol_nu.py index 5d0d8202d11..de1434dc844 100644 --- a/contrib/python/Pygments/py3/pygments/styles/algol_nu.py +++ b/contrib/python/Pygments/py3/pygments/styles/algol_nu.py @@ -33,7 +33,11 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, Operator +__all__ = ['Algol_NuStyle'] + + class Algol_NuStyle(Style): + name = 'algol_nu' background_color = "#ffffff" diff --git a/contrib/python/Pygments/py3/pygments/styles/arduino.py b/contrib/python/Pygments/py3/pygments/styles/arduino.py index 9c58f25c066..8655b03712e 100644 --- a/contrib/python/Pygments/py3/pygments/styles/arduino.py +++ b/contrib/python/Pygments/py3/pygments/styles/arduino.py @@ -13,84 +13,88 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['ArduinoStyle'] + + class ArduinoStyle(Style): """ The Arduino® language style. This style is designed to highlight the Arduino source code, so expect the best results with it. """ + name = 'arduino' background_color = "#ffffff" styles = { - Whitespace: "", # class: 'w' - Error: "#a61717", # class: 'err' - - Comment: "#95a5a6", # class: 'c' - Comment.Multiline: "", # class: 'cm' - Comment.Preproc: "#728E00", # class: 'cp' - Comment.Single: "", # class: 'c1' - Comment.Special: "", # class: 'cs' - - Keyword: "#728E00", # class: 'k' - Keyword.Constant: "#00979D", # class: 'kc' - Keyword.Declaration: "", # class: 'kd' - Keyword.Namespace: "", # class: 'kn' - Keyword.Pseudo: "#00979D", # class: 'kp' - Keyword.Reserved: "#00979D", # class: 'kr' - Keyword.Type: "#00979D", # class: 'kt' - - Operator: "#728E00", # class: 'o' - Operator.Word: "", # class: 'ow' - - Name: "#434f54", # class: 'n' - Name.Attribute: "", # class: 'na' - Name.Builtin: "#728E00", # class: 'nb' - Name.Builtin.Pseudo: "", # class: 'bp' - Name.Class: "", # class: 'nc' - Name.Constant: "", # class: 'no' - Name.Decorator: "", # class: 'nd' - Name.Entity: "", # class: 'ni' - Name.Exception: "", # class: 'ne' - Name.Function: "#D35400", # class: 'nf' - Name.Property: "", # class: 'py' - Name.Label: "", # class: 'nl' - Name.Namespace: "", # class: 'nn' - Name.Other: "#728E00", # class: 'nx' - Name.Tag: "", # class: 'nt' - Name.Variable: "", # class: 'nv' - Name.Variable.Class: "", # class: 'vc' - Name.Variable.Global: "", # class: 'vg' - Name.Variable.Instance: "", # class: 'vi' - - Number: "#8A7B52", # class: 'm' - Number.Float: "", # class: 'mf' - Number.Hex: "", # class: 'mh' - Number.Integer: "", # class: 'mi' - Number.Integer.Long: "", # class: 'il' - Number.Oct: "", # class: 'mo' - - String: "#7F8C8D", # class: 's' - String.Backtick: "", # class: 'sb' - String.Char: "", # class: 'sc' - String.Doc: "", # class: 'sd' - String.Double: "", # class: 's2' - String.Escape: "", # class: 'se' - String.Heredoc: "", # class: 'sh' - String.Interpol: "", # class: 'si' - String.Other: "", # class: 'sx' - String.Regex: "", # class: 'sr' - String.Single: "", # class: 's1' - String.Symbol: "", # class: 'ss' - - Generic: "", # class: 'g' - Generic.Deleted: "", # class: 'gd', - Generic.Emph: "", # class: 'ge' - Generic.Error: "", # class: 'gr' - Generic.Heading: "", # class: 'gh' - Generic.Inserted: "", # class: 'gi' - Generic.Output: "", # class: 'go' - Generic.Prompt: "", # class: 'gp' - Generic.Strong: "", # class: 'gs' - Generic.Subheading: "", # class: 'gu' - Generic.Traceback: "", # class: 'gt' + Whitespace: "", # class: 'w' + Error: "#a61717", # class: 'err' + + Comment: "#95a5a6", # class: 'c' + Comment.Multiline: "", # class: 'cm' + Comment.Preproc: "#728E00", # class: 'cp' + Comment.Single: "", # class: 'c1' + Comment.Special: "", # class: 'cs' + + Keyword: "#728E00", # class: 'k' + Keyword.Constant: "#00979D", # class: 'kc' + Keyword.Declaration: "", # class: 'kd' + Keyword.Namespace: "", # class: 'kn' + Keyword.Pseudo: "#00979D", # class: 'kp' + Keyword.Reserved: "#00979D", # class: 'kr' + Keyword.Type: "#00979D", # class: 'kt' + + Operator: "#728E00", # class: 'o' + Operator.Word: "", # class: 'ow' + + Name: "#434f54", # class: 'n' + Name.Attribute: "", # class: 'na' + Name.Builtin: "#728E00", # class: 'nb' + Name.Builtin.Pseudo: "", # class: 'bp' + Name.Class: "", # class: 'nc' + Name.Constant: "", # class: 'no' + Name.Decorator: "", # class: 'nd' + Name.Entity: "", # class: 'ni' + Name.Exception: "", # class: 'ne' + Name.Function: "#D35400", # class: 'nf' + Name.Property: "", # class: 'py' + Name.Label: "", # class: 'nl' + Name.Namespace: "", # class: 'nn' + Name.Other: "#728E00", # class: 'nx' + Name.Tag: "", # class: 'nt' + Name.Variable: "", # class: 'nv' + Name.Variable.Class: "", # class: 'vc' + Name.Variable.Global: "", # class: 'vg' + Name.Variable.Instance: "", # class: 'vi' + + Number: "#8A7B52", # class: 'm' + Number.Float: "", # class: 'mf' + Number.Hex: "", # class: 'mh' + Number.Integer: "", # class: 'mi' + Number.Integer.Long: "", # class: 'il' + Number.Oct: "", # class: 'mo' + + String: "#7F8C8D", # class: 's' + String.Backtick: "", # class: 'sb' + String.Char: "", # class: 'sc' + String.Doc: "", # class: 'sd' + String.Double: "", # class: 's2' + String.Escape: "", # class: 'se' + String.Heredoc: "", # class: 'sh' + String.Interpol: "", # class: 'si' + String.Other: "", # class: 'sx' + String.Regex: "", # class: 'sr' + String.Single: "", # class: 's1' + String.Symbol: "", # class: 'ss' + + Generic: "", # class: 'g' + Generic.Deleted: "", # class: 'gd', + Generic.Emph: "", # class: 'ge' + Generic.Error: "", # class: 'gr' + Generic.Heading: "", # class: 'gh' + Generic.Inserted: "", # class: 'gi' + Generic.Output: "", # class: 'go' + Generic.Prompt: "", # class: 'gp' + Generic.Strong: "", # class: 'gs' + Generic.Subheading: "", # class: 'gu' + Generic.Traceback: "", # class: 'gt' } diff --git a/contrib/python/Pygments/py3/pygments/styles/autumn.py b/contrib/python/Pygments/py3/pygments/styles/autumn.py index ac1949c5c32..ccbb5fe774d 100644 --- a/contrib/python/Pygments/py3/pygments/styles/autumn.py +++ b/contrib/python/Pygments/py3/pygments/styles/autumn.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['AutumnStyle'] + + class AutumnStyle(Style): """ A colorful style, inspired by the terminal highlighting style. """ + name = 'autumn' styles = { Whitespace: '#bbbbbb', diff --git a/contrib/python/Pygments/py3/pygments/styles/borland.py b/contrib/python/Pygments/py3/pygments/styles/borland.py index cf1529fbee8..82c00ae1386 100644 --- a/contrib/python/Pygments/py3/pygments/styles/borland.py +++ b/contrib/python/Pygments/py3/pygments/styles/borland.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['BorlandStyle'] + + class BorlandStyle(Style): """ Style similar to the style used in the borland IDEs. """ + name = 'borland' styles = { Whitespace: '#bbbbbb', diff --git a/contrib/python/Pygments/py3/pygments/styles/bw.py b/contrib/python/Pygments/py3/pygments/styles/bw.py index e4caced1e99..3ba00925fbd 100644 --- a/contrib/python/Pygments/py3/pygments/styles/bw.py +++ b/contrib/python/Pygments/py3/pygments/styles/bw.py @@ -13,7 +13,11 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Operator, Generic +__all__ = ['BlackWhiteStyle'] + + class BlackWhiteStyle(Style): + name = 'bw' background_color = "#ffffff" diff --git a/contrib/python/Pygments/py3/pygments/styles/colorful.py b/contrib/python/Pygments/py3/pygments/styles/colorful.py index 440fd640b4e..661a9e446da 100644 --- a/contrib/python/Pygments/py3/pygments/styles/colorful.py +++ b/contrib/python/Pygments/py3/pygments/styles/colorful.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['ColorfulStyle'] + + class ColorfulStyle(Style): """ A colorful style, inspired by CodeRay. """ + name = 'colorful' styles = { Whitespace: "#bbbbbb", diff --git a/contrib/python/Pygments/py3/pygments/styles/default.py b/contrib/python/Pygments/py3/pygments/styles/default.py index d87f32b8df7..f4e5b7b26d8 100644 --- a/contrib/python/Pygments/py3/pygments/styles/default.py +++ b/contrib/python/Pygments/py3/pygments/styles/default.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['DefaultStyle'] + + class DefaultStyle(Style): """ The default style (inspired by Emacs 22). """ + name = 'default' background_color = "#f8f8f8" diff --git a/contrib/python/Pygments/py3/pygments/styles/dracula.py b/contrib/python/Pygments/py3/pygments/styles/dracula.py index c43875217bf..d7043c00769 100644 --- a/contrib/python/Pygments/py3/pygments/styles/dracula.py +++ b/contrib/python/Pygments/py3/pygments/styles/dracula.py @@ -16,88 +16,75 @@ from pygments.token import Keyword, Name, Comment, String, Error, Literal, \ Number, Operator, Other, Punctuation, Text, Generic, Whitespace +__all__ = ['DraculaStyle'] + +background = "#282a36" +foreground = "#f8f8f2" +selection = "#44475a" +comment = "#6272a4" +cyan = "#8be9fd" +green = "#50fa7b" +orange = "#ffb86c" +pink = "#ff79c6" +purple = "#bd93f9" +red = "#ff5555" +yellow = "#f1fa8c" + +deletion = "#8b080b" + class DraculaStyle(Style): + name = 'dracula' - background_color = "#282a36" - highlight_color = "#44475a" - line_number_color = "#f1fa8c" - line_number_background_color = "#44475a" - line_number_special_color = "#50fa7b" - line_number_special_background_color = "#6272a4" + background_color = background + highlight_color = selection + line_number_color = yellow + line_number_background_color = selection + line_number_special_color = green + line_number_special_background_color = comment styles = { - Whitespace: "#f8f8f2", - - Comment: "#6272a4", - Comment.Hashbang: "#6272a4", - Comment.Multiline: "#6272a4", - Comment.Preproc: "#ff79c6", - Comment.Single: "#6272a4", - Comment.Special: "#6272a4", - - Generic: "#f8f8f2", - Generic.Deleted: "#8b080b", - Generic.Emph: "#f8f8f2 underline", - Generic.Error: "#f8f8f2", - Generic.Heading: "#f8f8f2 bold", - Generic.Inserted: "#f8f8f2 bold", - Generic.Output: "#44475a", - Generic.Prompt: "#f8f8f2", - Generic.Strong: "#f8f8f2", - Generic.EmphStrong: "#f8f8f2 underline", - Generic.Subheading: "#f8f8f2 bold", - Generic.Traceback: "#f8f8f2", - - Error: "#f8f8f2", - Keyword: "#ff79c6", - Keyword.Constant: "#ff79c6", - Keyword.Declaration: "#8be9fd italic", - Keyword.Namespace: "#ff79c6", - Keyword.Pseudo: "#ff79c6", - Keyword.Reserved: "#ff79c6", - Keyword.Type: "#8be9fd", - Literal: "#f8f8f2", - Literal.Date: "#f8f8f2", - Name: "#f8f8f2", - Name.Attribute: "#50fa7b", - Name.Builtin: "#8be9fd italic", - Name.Builtin.Pseudo: "#f8f8f2", - Name.Class: "#50fa7b", - Name.Constant: "#f8f8f2", - Name.Decorator: "#f8f8f2", - Name.Entity: "#f8f8f2", - Name.Exception: "#f8f8f2", - Name.Function: "#50fa7b", - Name.Label: "#8be9fd italic", - Name.Namespace: "#f8f8f2", - Name.Other: "#f8f8f2", - Name.Tag: "#ff79c6", - Name.Variable: "#8be9fd italic", - Name.Variable.Class: "#8be9fd italic", - Name.Variable.Global: "#8be9fd italic", - Name.Variable.Instance: "#8be9fd italic", - Number: "#ffb86c", - Number.Bin: "#ffb86c", - Number.Float: "#ffb86c", - Number.Hex: "#ffb86c", - Number.Integer: "#ffb86c", - Number.Integer.Long: "#ffb86c", - Number.Oct: "#ffb86c", - Operator: "#ff79c6", - Operator.Word: "#ff79c6", - Other: "#f8f8f2", - Punctuation: "#f8f8f2", - String: "#bd93f9", - String.Backtick: "#bd93f9", - String.Char: "#bd93f9", - String.Doc: "#bd93f9", - String.Double: "#bd93f9", - String.Escape: "#bd93f9", - String.Heredoc: "#bd93f9", - String.Interpol: "#bd93f9", - String.Other: "#bd93f9", - String.Regex: "#bd93f9", - String.Single: "#bd93f9", - String.Symbol: "#bd93f9", - Text: "#f8f8f2", + Whitespace: foreground, + + Comment: comment, + Comment.Preproc: pink, + + Generic: foreground, + Generic.Deleted: deletion, + Generic.Emph: "underline", + Generic.Heading: "bold", + Generic.Inserted: "bold", + Generic.Output: selection, + Generic.EmphStrong: "underline", + Generic.Subheading: "bold", + + Error: foreground, + + Keyword: pink, + Keyword.Constant: pink, + Keyword.Declaration: cyan + " italic", + Keyword.Type: cyan, + + Literal: foreground, + + Name: foreground, + Name.Attribute: green, + Name.Builtin: cyan + " italic", + Name.Builtin.Pseudo: foreground, + Name.Class: green, + Name.Function: green, + Name.Label: cyan + " italic", + Name.Tag: pink, + Name.Variable: cyan + " italic", + + Number: orange, + + Operator: pink, + + Other: foreground, + + Punctuation: foreground, + + String: purple, + + Text: foreground, } diff --git a/contrib/python/Pygments/py3/pygments/styles/emacs.py b/contrib/python/Pygments/py3/pygments/styles/emacs.py index 635a06f3807..fad91a13483 100644 --- a/contrib/python/Pygments/py3/pygments/styles/emacs.py +++ b/contrib/python/Pygments/py3/pygments/styles/emacs.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['EmacsStyle'] + + class EmacsStyle(Style): """ The default style (inspired by Emacs 22). """ + name = 'emacs' background_color = "#f8f8f8" diff --git a/contrib/python/Pygments/py3/pygments/styles/friendly.py b/contrib/python/Pygments/py3/pygments/styles/friendly.py index 00346c20cde..8de4fcc1e49 100644 --- a/contrib/python/Pygments/py3/pygments/styles/friendly.py +++ b/contrib/python/Pygments/py3/pygments/styles/friendly.py @@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['FriendlyStyle'] + + class FriendlyStyle(Style): """ A modern style based on the VIM pyte theme. """ + name = 'friendly' background_color = "#f0f0f0" line_number_color = "#666666" diff --git a/contrib/python/Pygments/py3/pygments/styles/friendly_grayscale.py b/contrib/python/Pygments/py3/pygments/styles/friendly_grayscale.py index c0d343ef525..e7d3ed47ecd 100644 --- a/contrib/python/Pygments/py3/pygments/styles/friendly_grayscale.py +++ b/contrib/python/Pygments/py3/pygments/styles/friendly_grayscale.py @@ -16,12 +16,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['FriendlyGrayscaleStyle'] + + class FriendlyGrayscaleStyle(Style): """ A modern grayscale style based on the friendly style. .. versionadded:: 2.11 """ + name = 'friendly_grayscale' background_color = "#f0f0f0" diff --git a/contrib/python/Pygments/py3/pygments/styles/fruity.py b/contrib/python/Pygments/py3/pygments/styles/fruity.py index 1ce396099d2..b23257d19a0 100644 --- a/contrib/python/Pygments/py3/pygments/styles/fruity.py +++ b/contrib/python/Pygments/py3/pygments/styles/fruity.py @@ -12,11 +12,17 @@ from pygments.style import Style from pygments.token import Token, Comment, Name, Keyword, \ Generic, Number, String, Whitespace + +__all__ = ['FruityStyle'] + + class FruityStyle(Style): """ Pygments version of the "native" vim theme. """ + name = 'fruity' + background_color = '#111111' highlight_color = '#333333' diff --git a/contrib/python/Pygments/py3/pygments/styles/gh_dark.py b/contrib/python/Pygments/py3/pygments/styles/gh_dark.py index 045a2f1559d..95f8e803d15 100644 --- a/contrib/python/Pygments/py3/pygments/styles/gh_dark.py +++ b/contrib/python/Pygments/py3/pygments/styles/gh_dark.py @@ -14,6 +14,9 @@ from pygments.token import Keyword, Name, Comment, Error, Number, Operator, \ Generic, Text, Literal, String, Token +__all__ = ['GhDarkStyle'] + + # vars are defined to match the defs in # - [GitHub's VS Code theme](https://github.com/primer/github-vscode-theme) and # - [Primer styles](https://github.com/primer/primitives) @@ -40,6 +43,8 @@ class GhDarkStyle(Style): """ Github's Dark-Colorscheme based theme for Pygments """ + + name = 'github-dark' background_color = BG_DEFAULT diff --git a/contrib/python/Pygments/py3/pygments/styles/gruvbox.py b/contrib/python/Pygments/py3/pygments/styles/gruvbox.py index 2a0b3523ddc..c05f3140b30 100644 --- a/contrib/python/Pygments/py3/pygments/styles/gruvbox.py +++ b/contrib/python/Pygments/py3/pygments/styles/gruvbox.py @@ -14,10 +14,15 @@ from pygments.token import Token, Keyword, Name, Comment, String, Error, \ Number, Operator, Generic +__all__ = ['GruvboxDarkStyle', 'GruvboxLightStyle'] + + class GruvboxDarkStyle(Style): """ Pygments version of the "gruvbox" dark vim theme. """ + + name = 'gruvbox-dark' background_color = '#282828' highlight_color = '#ebdbb2' @@ -63,11 +68,14 @@ class GruvboxDarkStyle(Style): Error: 'bg:#fb4934 #282828' } + class GruvboxLightStyle(Style): """ Pygments version of the "gruvbox" Light vim theme. """ + name = 'gruvbox-light' + background_color = '#fbf1c7' highlight_color = '#3c3836' diff --git a/contrib/python/Pygments/py3/pygments/styles/igor.py b/contrib/python/Pygments/py3/pygments/styles/igor.py index 542d168d286..797e3675c40 100644 --- a/contrib/python/Pygments/py3/pygments/styles/igor.py +++ b/contrib/python/Pygments/py3/pygments/styles/igor.py @@ -12,11 +12,16 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String +__all__ = ['IgorStyle'] + + class IgorStyle(Style): """ Pygments version of the official colors for Igor Pro procedures. """ + name = 'igor' + styles = { Comment: 'italic #FF0000', Keyword: '#0000FF', diff --git a/contrib/python/Pygments/py3/pygments/styles/inkpot.py b/contrib/python/Pygments/py3/pygments/styles/inkpot.py index f1057af5194..817d97f09f5 100644 --- a/contrib/python/Pygments/py3/pygments/styles/inkpot.py +++ b/contrib/python/Pygments/py3/pygments/styles/inkpot.py @@ -13,8 +13,12 @@ from pygments.token import Text, Other, Keyword, Name, Comment, String, \ Error, Number, Operator, Generic, Whitespace, Punctuation -class InkPotStyle(Style): +__all__ = ['InkPotStyle'] + +class InkPotStyle(Style): + name = 'inkpot' + background_color = "#1e1e27" styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/lightbulb.py b/contrib/python/Pygments/py3/pygments/styles/lightbulb.py index 24ea4430166..25c4b155986 100644 --- a/contrib/python/Pygments/py3/pygments/styles/lightbulb.py +++ b/contrib/python/Pygments/py3/pygments/styles/lightbulb.py @@ -24,6 +24,9 @@ from pygments.token import ( ) +__all__ = ['LightbulbStyle'] + + COLORS = { "bg": "#1d2331", "blue_1": "#73D0FF", @@ -47,6 +50,9 @@ class LightbulbStyle(Style): """ A minimal dark theme based on the Lightbulb theme for VSCode. """ + + name = 'lightbulb' + background_color = COLORS['bg'] highlight_color = COLORS['gray_3'] diff --git a/contrib/python/Pygments/py3/pygments/styles/lilypond.py b/contrib/python/Pygments/py3/pygments/styles/lilypond.py index a90b6978463..1218ec9d32f 100644 --- a/contrib/python/Pygments/py3/pygments/styles/lilypond.py +++ b/contrib/python/Pygments/py3/pygments/styles/lilypond.py @@ -11,13 +11,19 @@ from pygments.style import Style from pygments.token import Token + +__all__ = ['LilyPondStyle'] + + class LilyPondStyle(Style): """ Style for the LilyPond language. - + .. versionadded:: 2.11 """ + name = 'lilypond' + # Don't show it in the gallery, it's intended for LilyPond # input only and doesn't show good output on Python code. web_style_gallery_exclude = True diff --git a/contrib/python/Pygments/py3/pygments/styles/lovelace.py b/contrib/python/Pygments/py3/pygments/styles/lovelace.py index b4c4f333e46..279ff0793eb 100644 --- a/contrib/python/Pygments/py3/pygments/styles/lovelace.py +++ b/contrib/python/Pygments/py3/pygments/styles/lovelace.py @@ -17,20 +17,25 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Punctuation, Generic, Whitespace +__all__ = ['LovelaceStyle'] + + class LovelaceStyle(Style): """ The style used in Lovelace interactive learning environment. Tries to avoid the "angry fruit salad" effect with desaturated and dim colours. """ - _KW_BLUE = '#2838b0' - _NAME_GREEN = '#388038' - _DOC_ORANGE = '#b85820' - _OW_PURPLE = '#a848a8' - _FUN_BROWN = '#785840' - _STR_RED = '#b83838' - _CLS_CYAN = '#287088' - _ESCAPE_LIME = '#709030' - _LABEL_CYAN = '#289870' + name = 'lovelace' + + _KW_BLUE = '#2838b0' + _NAME_GREEN = '#388038' + _DOC_ORANGE = '#b85820' + _OW_PURPLE = '#a848a8' + _FUN_BROWN = '#785840' + _STR_RED = '#b83838' + _CLS_CYAN = '#287088' + _ESCAPE_LIME = '#709030' + _LABEL_CYAN = '#289870' _EXCEPT_YELLOW = '#908828' styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/manni.py b/contrib/python/Pygments/py3/pygments/styles/manni.py index 3f327eed32a..1eb0e698604 100644 --- a/contrib/python/Pygments/py3/pygments/styles/manni.py +++ b/contrib/python/Pygments/py3/pygments/styles/manni.py @@ -16,11 +16,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['ManniStyle'] + + class ManniStyle(Style): """ A colorful style, inspired by the terminal highlighting style. """ - + name = 'manni' + background_color = '#f0f3f3' styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/material.py b/contrib/python/Pygments/py3/pygments/styles/material.py index 816efa2ba3b..db0952d20ac 100644 --- a/contrib/python/Pygments/py3/pygments/styles/material.py +++ b/contrib/python/Pygments/py3/pygments/styles/material.py @@ -14,24 +14,30 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Escape, \ Error, Text, Number, Operator, Generic, Punctuation, Literal + +__all__ = ['MaterialStyle'] + + class MaterialStyle(Style): """ This style mimics the Material Theme color scheme. """ + name = 'material' + 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' + 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' diff --git a/contrib/python/Pygments/py3/pygments/styles/monokai.py b/contrib/python/Pygments/py3/pygments/styles/monokai.py index bf968d4ab4a..2ae51bcdfc1 100644 --- a/contrib/python/Pygments/py3/pygments/styles/monokai.py +++ b/contrib/python/Pygments/py3/pygments/styles/monokai.py @@ -14,11 +14,16 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, Token, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal + +__all__ = ['MonokaiStyle'] + + class MonokaiStyle(Style): """ This style mimics the Monokai color scheme. """ - + name = 'monokai' + background_color = "#272822" highlight_color = "#49483e" diff --git a/contrib/python/Pygments/py3/pygments/styles/murphy.py b/contrib/python/Pygments/py3/pygments/styles/murphy.py index b2e8f716eb9..0c5cc6df6ac 100644 --- a/contrib/python/Pygments/py3/pygments/styles/murphy.py +++ b/contrib/python/Pygments/py3/pygments/styles/murphy.py @@ -13,11 +13,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['MurphyStyle'] + + class MurphyStyle(Style): """ Murphy's style from CodeRay. """ - + name = 'murphy' + styles = { Whitespace: "#bbbbbb", Comment: "#666 italic", diff --git a/contrib/python/Pygments/py3/pygments/styles/native.py b/contrib/python/Pygments/py3/pygments/styles/native.py index 1cc78fe2b2c..11f83db4b98 100644 --- a/contrib/python/Pygments/py3/pygments/styles/native.py +++ b/contrib/python/Pygments/py3/pygments/styles/native.py @@ -13,11 +13,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Token, Whitespace +__all__ = ['NativeStyle'] + + class NativeStyle(Style): """ Pygments version of the "native" vim theme. """ - + name = 'native' + background_color = '#202020' highlight_color = '#404040' line_number_color = '#aaaaaa' diff --git a/contrib/python/Pygments/py3/pygments/styles/nord.py b/contrib/python/Pygments/py3/pygments/styles/nord.py index bc76ecc059d..e5cff245205 100644 --- a/contrib/python/Pygments/py3/pygments/styles/nord.py +++ b/contrib/python/Pygments/py3/pygments/styles/nord.py @@ -14,11 +14,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, Number, \ Operator, Generic, Whitespace, Punctuation, Text, Token +__all__ = ['NordStyle', 'NordDarkerStyle'] + + class NordStyle(Style): """ Pygments version of the "nord" theme by Arctic Ice Studio. """ - + name = 'nord' + line_number_color = "#D8DEE9" line_number_background_color = "#242933" line_number_special_color = "#242933" @@ -87,7 +91,8 @@ class NordDarkerStyle(Style): """ Pygments version of a darker "nord" theme by Arctic Ice Studio """ - + name = 'nord-darker' + line_number_color = "#D8DEE9" line_number_background_color = "#242933" line_number_special_color = "#242933" diff --git a/contrib/python/Pygments/py3/pygments/styles/onedark.py b/contrib/python/Pygments/py3/pygments/styles/onedark.py index e9e90fd8b8e..b145ce91e21 100644 --- a/contrib/python/Pygments/py3/pygments/styles/onedark.py +++ b/contrib/python/Pygments/py3/pygments/styles/onedark.py @@ -16,13 +16,17 @@ from pygments.token import Comment, Keyword, Name, Number, Operator, \ Punctuation, String, Token +__all__ = ['OneDarkStyle'] + + class OneDarkStyle(Style): """ Theme inspired by One Dark Pro for Atom. .. versionadded:: 2.11 """ - + name = 'one-dark' + background_color = '#282C34' styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/paraiso_dark.py b/contrib/python/Pygments/py3/pygments/styles/paraiso_dark.py index 8e8e6dcf34c..8cc231f31cf 100644 --- a/contrib/python/Pygments/py3/pygments/styles/paraiso_dark.py +++ b/contrib/python/Pygments/py3/pygments/styles/paraiso_dark.py @@ -17,6 +17,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, Text, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal +__all__ = ['ParaisoDarkStyle'] + + BACKGROUND = "#2f1e2e" CURRENT_LINE = "#41323f" SELECTION = "#4f424c" @@ -32,7 +35,8 @@ PURPLE = "#815ba4" class ParaisoDarkStyle(Style): - + name = 'paraiso-dark' + background_color = BACKGROUND highlight_color = SELECTION diff --git a/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py b/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py index 3f19946ef72..ac76badbfe7 100644 --- a/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py +++ b/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py @@ -17,6 +17,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, Text, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal +__all__ = ['ParaisoLightStyle'] + + BACKGROUND = "#e7e9db" CURRENT_LINE = "#b9b6b0" SELECTION = "#a39e9b" @@ -32,7 +35,8 @@ PURPLE = "#815ba4" class ParaisoLightStyle(Style): - + name = 'paraiso-light' + background_color = BACKGROUND highlight_color = SELECTION diff --git a/contrib/python/Pygments/py3/pygments/styles/pastie.py b/contrib/python/Pygments/py3/pygments/styles/pastie.py index 1809bfae9fa..2892660bff7 100644 --- a/contrib/python/Pygments/py3/pygments/styles/pastie.py +++ b/contrib/python/Pygments/py3/pygments/styles/pastie.py @@ -15,11 +15,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['PastieStyle'] + + class PastieStyle(Style): """ Style similar to the pastie default style. """ + name = 'pastie' + styles = { Whitespace: '#bbbbbb', Comment: '#888888', diff --git a/contrib/python/Pygments/py3/pygments/styles/perldoc.py b/contrib/python/Pygments/py3/pygments/styles/perldoc.py index a499f9ff410..071821bb1ee 100644 --- a/contrib/python/Pygments/py3/pygments/styles/perldoc.py +++ b/contrib/python/Pygments/py3/pygments/styles/perldoc.py @@ -15,11 +15,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['PerldocStyle'] + + class PerldocStyle(Style): """ Style similar to the style used in the perldoc code blocks. """ + name = 'perldoc' + background_color = '#eeeedd' styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py b/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py index 7a916d66e1d..82bfed54827 100644 --- a/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py +++ b/contrib/python/Pygments/py3/pygments/styles/rainbow_dash.py @@ -14,6 +14,10 @@ from pygments.style import Style from pygments.token import Comment, Error, Generic, Name, Number, Operator, \ String, Text, Whitespace, Keyword + +__all__ = ['RainbowDashStyle'] + + BLUE_LIGHT = '#0080ff' BLUE = '#2c5dcd' GREEN = '#00cc66' @@ -37,6 +41,8 @@ class RainbowDashStyle(Style): A bright and colorful syntax highlighting theme. """ + name = 'rainbow_dash' + background_color = WHITE styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/rrt.py b/contrib/python/Pygments/py3/pygments/styles/rrt.py index 889a51cade2..3376d581db5 100644 --- a/contrib/python/Pygments/py3/pygments/styles/rrt.py +++ b/contrib/python/Pygments/py3/pygments/styles/rrt.py @@ -9,7 +9,10 @@ """ from pygments.style import Style -from pygments.token import Token, Comment, Name, Keyword, String +from pygments.token import Token, Comment, Name, Keyword, String, Number + + +__all__ = ['RrtStyle'] class RrtStyle(Style): @@ -17,6 +20,8 @@ class RrtStyle(Style): Minimalistic "rrt" theme, based on Zap and Emacs defaults. """ + name = 'rrt' + background_color = '#000000' highlight_color = '#0000ff' @@ -30,4 +35,5 @@ class RrtStyle(Style): Comment.Preproc: '#e5e5e5', String: '#87ceeb', Keyword.Type: '#ee82ee', + Number: '#ff00ff', } diff --git a/contrib/python/Pygments/py3/pygments/styles/sas.py b/contrib/python/Pygments/py3/pygments/styles/sas.py index 86d7ed38f83..4d19b224cd5 100644 --- a/contrib/python/Pygments/py3/pygments/styles/sas.py +++ b/contrib/python/Pygments/py3/pygments/styles/sas.py @@ -15,6 +15,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Other, Whitespace, Generic +__all__ = ['SasStyle'] + + class SasStyle(Style): """ Style inspired by SAS' enhanced program editor. Note This is not @@ -22,6 +25,8 @@ class SasStyle(Style): program editor syntax highlighting. """ + name = 'sas' + styles = { Whitespace: '#bbbbbb', Comment: 'italic #008800', diff --git a/contrib/python/Pygments/py3/pygments/styles/solarized.py b/contrib/python/Pygments/py3/pygments/styles/solarized.py index e75aa602fed..6a1f81240b5 100644 --- a/contrib/python/Pygments/py3/pygments/styles/solarized.py +++ b/contrib/python/Pygments/py3/pygments/styles/solarized.py @@ -16,6 +16,9 @@ from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \ Operator, String, Token +__all__ = ['SolarizedLightStyle', 'SolarizedDarkStyle'] + + def make_style(colors): return { Token: colors['base0'], @@ -118,6 +121,8 @@ class SolarizedDarkStyle(Style): The solarized style, dark. """ + name = 'solarized-dark' + styles = make_style(DARK_COLORS) background_color = DARK_COLORS['base03'] highlight_color = DARK_COLORS['base02'] @@ -130,6 +135,8 @@ class SolarizedLightStyle(SolarizedDarkStyle): The solarized style, light. """ + name = 'solarized-light' + styles = make_style(LIGHT_COLORS) background_color = LIGHT_COLORS['base03'] highlight_color = LIGHT_COLORS['base02'] diff --git a/contrib/python/Pygments/py3/pygments/styles/staroffice.py b/contrib/python/Pygments/py3/pygments/styles/staroffice.py index 0f6cbaeb29d..b2cfba9fb3e 100644 --- a/contrib/python/Pygments/py3/pygments/styles/staroffice.py +++ b/contrib/python/Pygments/py3/pygments/styles/staroffice.py @@ -12,11 +12,16 @@ from pygments.style import Style from pygments.token import Comment, Error, Literal, Name, Token +__all__ = ['StarofficeStyle'] + + class StarofficeStyle(Style): """ Style similar to StarOffice style, also in OpenOffice and LibreOffice. """ + name = 'staroffice' + styles = { Token: '#000080', # Blue Comment: '#696969', # DimGray diff --git a/contrib/python/Pygments/py3/pygments/styles/stata_dark.py b/contrib/python/Pygments/py3/pygments/styles/stata_dark.py index 1dc1c63ea25..c2d0f192463 100644 --- a/contrib/python/Pygments/py3/pygments/styles/stata_dark.py +++ b/contrib/python/Pygments/py3/pygments/styles/stata_dark.py @@ -15,8 +15,12 @@ from pygments.token import Token, Keyword, Name, Comment, String, Error, \ Number, Operator, Whitespace, Generic -class StataDarkStyle(Style): +__all__ = ['StataDarkStyle'] + +class StataDarkStyle(Style): + name = 'stata-dark' + background_color = "#232629" highlight_color = "#49483e" diff --git a/contrib/python/Pygments/py3/pygments/styles/stata_light.py b/contrib/python/Pygments/py3/pygments/styles/stata_light.py index f7923d3624b..5e034568cae 100644 --- a/contrib/python/Pygments/py3/pygments/styles/stata_light.py +++ b/contrib/python/Pygments/py3/pygments/styles/stata_light.py @@ -14,12 +14,17 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Whitespace, Text +__all__ = ['StataLightStyle'] + + 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. """ + name = 'stata-light' + styles = { Text: '#111111', Whitespace: '#bbbbbb', diff --git a/contrib/python/Pygments/py3/pygments/styles/tango.py b/contrib/python/Pygments/py3/pygments/styles/tango.py index 2858b21b44a..787a697856d 100644 --- a/contrib/python/Pygments/py3/pygments/styles/tango.py +++ b/contrib/python/Pygments/py3/pygments/styles/tango.py @@ -41,14 +41,17 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal +__all__ = ['TangoStyle'] + + class TangoStyle(Style): """ The Crunchy default Style inspired from the color palette from the Tango Icon Theme Guidelines. """ - # work in progress... - + name = 'tango' + background_color = "#f8f8f8" styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/trac.py b/contrib/python/Pygments/py3/pygments/styles/trac.py index b00aaaa3f12..5f5c319ab80 100644 --- a/contrib/python/Pygments/py3/pygments/styles/trac.py +++ b/contrib/python/Pygments/py3/pygments/styles/trac.py @@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace +__all__ = ['TracStyle'] + + class TracStyle(Style): """ Port of the default trac highlighter design. """ + name = 'trac' + styles = { Whitespace: '#bbbbbb', Comment: 'italic #999988', diff --git a/contrib/python/Pygments/py3/pygments/styles/vim.py b/contrib/python/Pygments/py3/pygments/styles/vim.py index a254bbaacb8..1a0828fb0d5 100644 --- a/contrib/python/Pygments/py3/pygments/styles/vim.py +++ b/contrib/python/Pygments/py3/pygments/styles/vim.py @@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Token +__all__ = ['VimStyle'] + + class VimStyle(Style): """ Styles somewhat like vim 7.0 """ + name = 'vim' + background_color = "#000000" highlight_color = "#222222" diff --git a/contrib/python/Pygments/py3/pygments/styles/vs.py b/contrib/python/Pygments/py3/pygments/styles/vs.py index e1d1dabe057..b3b98c05dd9 100644 --- a/contrib/python/Pygments/py3/pygments/styles/vs.py +++ b/contrib/python/Pygments/py3/pygments/styles/vs.py @@ -13,8 +13,12 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Operator, Generic -class VisualStudioStyle(Style): +__all__ = ['VisualStudioStyle'] + +class VisualStudioStyle(Style): + name = 'vs' + background_color = "#ffffff" styles = { diff --git a/contrib/python/Pygments/py3/pygments/styles/xcode.py b/contrib/python/Pygments/py3/pygments/styles/xcode.py index 86cab45fbed..87b1323ab8a 100644 --- a/contrib/python/Pygments/py3/pygments/styles/xcode.py +++ b/contrib/python/Pygments/py3/pygments/styles/xcode.py @@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Literal +__all__ = ['XcodeStyle'] + + class XcodeStyle(Style): """ Style similar to the Xcode default colouring theme. """ + name = 'xcode' + styles = { Comment: '#177500', Comment.Preproc: '#633820', diff --git a/contrib/python/Pygments/py3/pygments/styles/zenburn.py b/contrib/python/Pygments/py3/pygments/styles/zenburn.py index 35d5ec52792..6751c08d7c6 100644 --- a/contrib/python/Pygments/py3/pygments/styles/zenburn.py +++ b/contrib/python/Pygments/py3/pygments/styles/zenburn.py @@ -16,11 +16,16 @@ from pygments.token import Token, Name, Operator, Keyword, Generic, Comment, \ Number, String, Literal, Punctuation, Error +__all__ = ['ZenburnStyle'] + + class ZenburnStyle(Style): """ Low contrast Zenburn style. """ + name = 'zenburn' + background_color = '#3f3f3f' highlight_color = '#484848' line_number_color = '#5d6262' |
