diff options
| author | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 | 
|---|---|---|
| committer | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 | 
| commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
| tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/python/Pygments/py3/pygments/styles/paraiso_light.py | |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles/paraiso_light.py')
| -rw-r--r-- | contrib/python/Pygments/py3/pygments/styles/paraiso_light.py | 121 | 
1 files changed, 121 insertions, 0 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py b/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py new file mode 100644 index 00000000000..4c9f1392ac6 --- /dev/null +++ b/contrib/python/Pygments/py3/pygments/styles/paraiso_light.py @@ -0,0 +1,121 @@ +""" +    pygments.styles.paraiso_light +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +    ParaĆso (Light) by Jan T. Sott + +    Pygments template by Jan T. Sott (https://github.com/idleberg) +    Created with Base16 Builder by Chris Kempson +    (https://github.com/chriskempson/base16-builder). + +    :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, Text, \ +    Number, Operator, Generic, Whitespace, Punctuation, Other, Literal + + +BACKGROUND = "#e7e9db" +CURRENT_LINE = "#b9b6b0" +SELECTION = "#a39e9b" +FOREGROUND = "#2f1e2e" +COMMENT = "#8d8687" +RED = "#ef6155" +ORANGE = "#f99b15" +YELLOW = "#fec418" +GREEN = "#48b685" +AQUA = "#5bc4bf" +BLUE = "#06b6ef" +PURPLE = "#815ba4" + + +class ParaisoLightStyle(Style): + +    default_style = '' + +    background_color = BACKGROUND +    highlight_color = SELECTION + +    styles = { +        # No corresponding class for the following: +        Text:                      FOREGROUND,  # class:  '' +        Whitespace:                "",          # class: 'w' +        Error:                     RED,         # class: 'err' +        Other:                     "",          # class 'x' + +        Comment:                   COMMENT,   # class: 'c' +        Comment.Multiline:         "",        # class: 'cm' +        Comment.Preproc:           "",        # class: 'cp' +        Comment.Single:            "",        # class: 'c1' +        Comment.Special:           "",        # class: 'cs' + +        Keyword:                   PURPLE,    # class: 'k' +        Keyword.Constant:          "",        # class: 'kc' +        Keyword.Declaration:       "",        # class: 'kd' +        Keyword.Namespace:         AQUA,      # class: 'kn' +        Keyword.Pseudo:            "",        # class: 'kp' +        Keyword.Reserved:          "",        # class: 'kr' +        Keyword.Type:              YELLOW,    # class: 'kt' + +        Operator:                  AQUA,      # class: 'o' +        Operator.Word:             "",        # class: 'ow' - like keywords + +        Punctuation:               FOREGROUND,  # class: 'p' + +        Name:                      FOREGROUND,  # class: 'n' +        Name.Attribute:            BLUE,        # class: 'na' - to be revised +        Name.Builtin:              "",          # class: 'nb' +        Name.Builtin.Pseudo:       "",          # class: 'bp' +        Name.Class:                YELLOW,      # class: 'nc' - to be revised +        Name.Constant:             RED,         # class: 'no' - to be revised +        Name.Decorator:            AQUA,        # class: 'nd' - to be revised +        Name.Entity:               "",          # class: 'ni' +        Name.Exception:            RED,         # class: 'ne' +        Name.Function:             BLUE,        # class: 'nf' +        Name.Property:             "",          # class: 'py' +        Name.Label:                "",          # class: 'nl' +        Name.Namespace:            YELLOW,      # class: 'nn' - to be revised +        Name.Other:                BLUE,        # class: 'nx' +        Name.Tag:                  AQUA,        # class: 'nt' - like a keyword +        Name.Variable:             RED,         # class: 'nv' - to be revised +        Name.Variable.Class:       "",          # class: 'vc' - to be revised +        Name.Variable.Global:      "",          # class: 'vg' - to be revised +        Name.Variable.Instance:    "",          # class: 'vi' - to be revised + +        Number:                    ORANGE,    # class: 'm' +        Number.Float:              "",        # class: 'mf' +        Number.Hex:                "",        # class: 'mh' +        Number.Integer:            "",        # class: 'mi' +        Number.Integer.Long:       "",        # class: 'il' +        Number.Oct:                "",        # class: 'mo' + +        Literal:                   ORANGE,    # class: 'l' +        Literal.Date:              GREEN,     # class: 'ld' + +        String:                    GREEN,       # class: 's' +        String.Backtick:           "",          # class: 'sb' +        String.Char:               FOREGROUND,  # class: 'sc' +        String.Doc:                COMMENT,     # class: 'sd' - like a comment +        String.Double:             "",          # class: 's2' +        String.Escape:             ORANGE,      # class: 'se' +        String.Heredoc:            "",          # class: 'sh' +        String.Interpol:           ORANGE,      # class: 'si' +        String.Other:              "",          # class: 'sx' +        String.Regex:              "",          # class: 'sr' +        String.Single:             "",          # class: 's1' +        String.Symbol:             "",          # class: 'ss' + +        Generic:                   "",                    # class: 'g' +        Generic.Deleted:           RED,                   # class: 'gd', +        Generic.Emph:              "italic",              # class: 'ge' +        Generic.Error:             "",                    # class: 'gr' +        Generic.Heading:           "bold " + FOREGROUND,  # class: 'gh' +        Generic.Inserted:          GREEN,                 # class: 'gi' +        Generic.Output:            "",                    # class: 'go' +        Generic.Prompt:            "bold " + COMMENT,     # class: 'gp' +        Generic.Strong:            "bold",                # class: 'gs' +        Generic.Subheading:        "bold " + AQUA,        # class: 'gu' +        Generic.Traceback:         "",                    # class: 'gt' +    }  | 
