File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ def make_colours():
151151 'prompt' : 'r' ,
152152 'output' : 'k' ,
153153 'statusbar' : 'r' ,
154+ 'error' : 'b' ,
154155 }
155156 OPTS .dark = {
156157 'listwin' : 'c' ,
@@ -166,6 +167,7 @@ def make_colours():
166167 'prompt' : 'g' ,
167168 'output' : 'w' ,
168169 'statusbar' : 'c' ,
170+ 'error' : 'y' ,
169171 }
170172 if OPTS .color_scheme == 'light' :
171173 bg = 7
@@ -274,7 +276,7 @@ def showtraceback(self):
274276 def writetb (self , l ):
275277 """This outputs the traceback and should be overridden for anything
276278 fancy."""
277- map (self .write , ["\x01 y \x03 %s" % (i , ) for i in l ])
279+ map (self .write , ["\x01 %s \x03 %s" % (OPTS . extras [ 'error' ], i ) for i in l ])
278280
279281
280282class Repl (object ):
Original file line number Diff line number Diff line change 7171}
7272
7373f_strings_light = {
74- Keyword : "\x01 b " ,
75- Name : "\x01 k\x02 " ,
76- Comment : "\x01 b " ,
74+ Keyword : "\x01 y \x02 " ,
75+ Name : "\x01 k" ,
76+ Comment : "\x01 g \x02 " ,
7777 String : "\x01 g" ,
7878 Error : "\x01 r" ,
7979 Literal : "\x01 r" ,
80- Literal .String : "\x01 g " ,
80+ Literal .String : "\x01 b \x02 " ,
8181 Token .Literal .Number .Float : "\x01 g\x02 " ,
8282 Number : "\x01 g" ,
8383 Operator : "\x01 b\x02 " ,
8484 Operator .Word : "\x01 k\x02 " ,
8585 Punctuation : "\x01 b\x02 " ,
8686 Generic : "\x01 d" ,
87- Token : "\x01 b " ,
87+ Token : "\x01 r \x02 " ,
8888 Whitespace : "\x02 d" ,
8989}
9090
You can’t perform that action at this time.
0 commit comments