File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22import re
33from typing import Any
44
5- from .import core
5+ from .import core
66
77def ansi_colorize (text : str , color : str | None = None , previous_color : str | None = None ):
88 text = text .replace ('\r \n ' , '\n ' )
@@ -15,7 +15,7 @@ def replacement(x: Any):
1515 return ''
1616
1717 text = ansi_escape .sub (replacement , text )
18-
18+
1919 if color != previous_color :
2020 return escape_code (color ) + text
2121 else :
@@ -40,7 +40,7 @@ def escape_code(color: str|None):
4040 },
4141 {
4242 'color' : 'comment' ,
43- 'escape' : [],
43+ 'escape' : [' \u001b [90m' ],
4444 'scope' : 'comment.debugger' ,
4545 'match' : '\u200b \u200b ' ,
4646 },
@@ -115,4 +115,4 @@ def generate_ansi_syntax():
115115 scope: { scope }
116116 pop: true
117117'''
118- return yaml .replace ('\t ' , ' ' )
118+ return yaml .replace ('\t ' , ' ' )
You can’t perform that action at this time.
0 commit comments