We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532c3a2 commit d1dd401Copy full SHA for d1dd401
bpython/formatter.py
@@ -70,6 +70,23 @@
70
Whitespace: "\x02d\x03%s\x04",
71
}
72
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
+}
90
91
class BPythonFormatter(Formatter):
92
"""This is the custom formatter for bpython.
0 commit comments