Salome HOME
style: black format
[tools/sat.git] / doc / _themes / alabaster / alabaster / support.py
1 # flake8: noqa
2
3 from pygments.style import Style
4 from pygments.token import (
5     Keyword,
6     Name,
7     Comment,
8     String,
9     Error,
10     Number,
11     Operator,
12     Generic,
13     Whitespace,
14     Punctuation,
15     Other,
16     Literal,
17 )
18
19
20 # Originally based on FlaskyStyle which was based on 'tango'.
21 class Alabaster(Style):
22     background_color = "#f8f8f8"  # doesn't seem to override CSS 'pre' styling?
23     default_style = ""
24
25     styles = {
26         # No corresponding class for the following:
27         # Text:                     "", # class:  ''
28         Whitespace: "underline #f8f8f8",  # class: 'w'
29         Error: "#a40000 border:#ef2929",  # class: 'err'
30         Other: "#000000",  # class 'x'
31         Comment: "italic #8f5902",  # class: 'c'
32         Comment.Preproc: "noitalic",  # class: 'cp'
33         Keyword: "bold #004461",  # class: 'k'
34         Keyword.Constant: "bold #004461",  # class: 'kc'
35         Keyword.Declaration: "bold #004461",  # class: 'kd'
36         Keyword.Namespace: "bold #004461",  # class: 'kn'
37         Keyword.Pseudo: "bold #004461",  # class: 'kp'
38         Keyword.Reserved: "bold #004461",  # class: 'kr'
39         Keyword.Type: "bold #004461",  # class: 'kt'
40         Operator: "#582800",  # class: 'o'
41         Operator.Word: "bold #004461",  # class: 'ow' - like keywords
42         Punctuation: "bold #000000",  # class: 'p'
43         # because special names such as Name.Class, Name.Function, etc.
44         # are not recognized as such later in the parsing, we choose them
45         # to look the same as ordinary variables.
46         Name: "#000000",  # class: 'n'
47         Name.Attribute: "#c4a000",  # class: 'na' - to be revised
48         Name.Builtin: "#004461",  # class: 'nb'
49         Name.Builtin.Pseudo: "#3465a4",  # class: 'bp'
50         Name.Class: "#000000",  # class: 'nc' - to be revised
51         Name.Constant: "#000000",  # class: 'no' - to be revised
52         Name.Decorator: "#888",  # class: 'nd' - to be revised
53         Name.Entity: "#ce5c00",  # class: 'ni'
54         Name.Exception: "bold #cc0000",  # class: 'ne'
55         Name.Function: "#000000",  # class: 'nf'
56         Name.Property: "#000000",  # class: 'py'
57         Name.Label: "#f57900",  # class: 'nl'
58         Name.Namespace: "#000000",  # class: 'nn' - to be revised
59         Name.Other: "#000000",  # class: 'nx'
60         Name.Tag: "bold #004461",  # class: 'nt' - like a keyword
61         Name.Variable: "#000000",  # class: 'nv' - to be revised
62         Name.Variable.Class: "#000000",  # class: 'vc' - to be revised
63         Name.Variable.Global: "#000000",  # class: 'vg' - to be revised
64         Name.Variable.Instance: "#000000",  # class: 'vi' - to be revised
65         Number: "#990000",  # class: 'm'
66         Literal: "#000000",  # class: 'l'
67         Literal.Date: "#000000",  # class: 'ld'
68         String: "#4e9a06",  # class: 's'
69         String.Backtick: "#4e9a06",  # class: 'sb'
70         String.Char: "#4e9a06",  # class: 'sc'
71         String.Doc: "italic #8f5902",  # class: 'sd' - like a comment
72         String.Double: "#4e9a06",  # class: 's2'
73         String.Escape: "#4e9a06",  # class: 'se'
74         String.Heredoc: "#4e9a06",  # class: 'sh'
75         String.Interpol: "#4e9a06",  # class: 'si'
76         String.Other: "#4e9a06",  # class: 'sx'
77         String.Regex: "#4e9a06",  # class: 'sr'
78         String.Single: "#4e9a06",  # class: 's1'
79         String.Symbol: "#4e9a06",  # class: 'ss'
80         Generic: "#000000",  # class: 'g'
81         Generic.Deleted: "#a40000",  # class: 'gd'
82         Generic.Emph: "italic #000000",  # class: 'ge'
83         Generic.Error: "#ef2929",  # class: 'gr'
84         Generic.Heading: "bold #000080",  # class: 'gh'
85         Generic.Inserted: "#00A000",  # class: 'gi'
86         Generic.Output: "#888",  # class: 'go'
87         Generic.Prompt: "#745334",  # class: 'gp'
88         Generic.Strong: "bold #000000",  # class: 'gs'
89         Generic.Subheading: "bold #800080",  # class: 'gu'
90         Generic.Traceback: "bold #a40000",  # class: 'gt'
91     }