Skip to content

Commit d1dd401

Browse files
Federico Ceratto federico cerattoFederico Ceratto federico ceratto
authored andcommitted
Colormap for bright backgrounds created.
user: Federico Ceratto federico.ceratto@gmail.com changed bpython/formatter.py
1 parent 532c3a2 commit d1dd401

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bpython/formatter.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,23 @@
7070
Whitespace: "\x02d\x03%s\x04",
7171
}
7272

73+
f_strings_light = {
74+
Keyword: "\x01b\x03%s\x04",
75+
Name: "\x01k\x02\x03%s\x04",
76+
Comment: "\x01b\x03%s\x04",
77+
String: "\x01g\x03%s\x04",
78+
Error: "\x01r\x03%s\x04",
79+
Literal: "\x01r\x03%s\x04",
80+
Literal.String: "\x01g\x03%s\x04",
81+
Token.Literal.Number.Float: "\x01g\x02\x03%s\x04",
82+
Number: "\x01g\x03%s\x04",
83+
Operator: "\x01b\x02\x03%s\x04",
84+
Operator.Word: "\x01k\x02\x03%s\x04",
85+
Punctuation: "\x01b\x02\x03%s\x04",
86+
Generic: "\x01d\x03%s\x04",
87+
Token: "\x01b\x03%s\x04",
88+
Whitespace: "\x02d\x03%s\x04",
89+
}
7390

7491
class BPythonFormatter(Formatter):
7592
"""This is the custom formatter for bpython.

0 commit comments

Comments
 (0)