Replace chroma with go-highlite

This commit is contained in:
2025-06-19 14:18:55 -04:00
parent c271197076
commit f4718e24c8
12 changed files with 318 additions and 1117 deletions
-166
View File
@@ -234,89 +234,6 @@ var (
},
Margin: uintPtr(defaultMargin),
},
Chroma: &ansi.Chroma{
Text: ansi.StylePrimitive{
Color: stringPtr("#C4C4C4"),
},
Error: ansi.StylePrimitive{
Color: stringPtr("#F1F1F1"),
BackgroundColor: stringPtr("#F05B5B"),
},
Comment: ansi.StylePrimitive{
Color: stringPtr("#676767"),
},
CommentPreproc: ansi.StylePrimitive{
Color: stringPtr("#FF875F"),
},
Keyword: ansi.StylePrimitive{
Color: stringPtr("#00AAFF"),
},
KeywordReserved: ansi.StylePrimitive{
Color: stringPtr("#FF5FD2"),
},
KeywordNamespace: ansi.StylePrimitive{
Color: stringPtr("#FF5F87"),
},
KeywordType: ansi.StylePrimitive{
Color: stringPtr("#6E6ED8"),
},
Operator: ansi.StylePrimitive{
Color: stringPtr("#EF8080"),
},
Punctuation: ansi.StylePrimitive{
Color: stringPtr("#E8E8A8"),
},
Name: ansi.StylePrimitive{
Color: stringPtr("#C4C4C4"),
},
NameBuiltin: ansi.StylePrimitive{
Color: stringPtr("#FF8EC7"),
},
NameTag: ansi.StylePrimitive{
Color: stringPtr("#B083EA"),
},
NameAttribute: ansi.StylePrimitive{
Color: stringPtr("#7A7AE6"),
},
NameClass: ansi.StylePrimitive{
Color: stringPtr("#F1F1F1"),
Underline: boolPtr(true),
Bold: boolPtr(true),
},
NameDecorator: ansi.StylePrimitive{
Color: stringPtr("#FFFF87"),
},
NameFunction: ansi.StylePrimitive{
Color: stringPtr("#00D787"),
},
LiteralNumber: ansi.StylePrimitive{
Color: stringPtr("#6EEFC0"),
},
LiteralString: ansi.StylePrimitive{
Color: stringPtr("#C69669"),
},
LiteralStringEscape: ansi.StylePrimitive{
Color: stringPtr("#AFFFD7"),
},
GenericDeleted: ansi.StylePrimitive{
Color: stringPtr("#FD5B5B"),
},
GenericEmph: ansi.StylePrimitive{
Italic: boolPtr(true),
},
GenericInserted: ansi.StylePrimitive{
Color: stringPtr("#00D787"),
},
GenericStrong: ansi.StylePrimitive{
Bold: boolPtr(true),
},
GenericSubheading: ansi.StylePrimitive{
Color: stringPtr("#777777"),
},
Background: ansi.StylePrimitive{
BackgroundColor: stringPtr("#373737"),
},
},
},
Table: ansi.StyleTable{
StyleBlock: ansi.StyleBlock{
@@ -446,89 +363,6 @@ var (
},
Margin: uintPtr(defaultMargin),
},
Chroma: &ansi.Chroma{
Text: ansi.StylePrimitive{
Color: stringPtr("#2A2A2A"),
},
Error: ansi.StylePrimitive{
Color: stringPtr("#F1F1F1"),
BackgroundColor: stringPtr("#FF5555"),
},
Comment: ansi.StylePrimitive{
Color: stringPtr("#8D8D8D"),
},
CommentPreproc: ansi.StylePrimitive{
Color: stringPtr("#FF875F"),
},
Keyword: ansi.StylePrimitive{
Color: stringPtr("#279EFC"),
},
KeywordReserved: ansi.StylePrimitive{
Color: stringPtr("#FF5FD2"),
},
KeywordNamespace: ansi.StylePrimitive{
Color: stringPtr("#FB406F"),
},
KeywordType: ansi.StylePrimitive{
Color: stringPtr("#7049C2"),
},
Operator: ansi.StylePrimitive{
Color: stringPtr("#FF2626"),
},
Punctuation: ansi.StylePrimitive{
Color: stringPtr("#FA7878"),
},
NameBuiltin: ansi.StylePrimitive{
Color: stringPtr("#0A1BB1"),
},
NameTag: ansi.StylePrimitive{
Color: stringPtr("#581290"),
},
NameAttribute: ansi.StylePrimitive{
Color: stringPtr("#8362CB"),
},
NameClass: ansi.StylePrimitive{
Color: stringPtr("#212121"),
Underline: boolPtr(true),
Bold: boolPtr(true),
},
NameConstant: ansi.StylePrimitive{
Color: stringPtr("#581290"),
},
NameDecorator: ansi.StylePrimitive{
Color: stringPtr("#A3A322"),
},
NameFunction: ansi.StylePrimitive{
Color: stringPtr("#019F57"),
},
LiteralNumber: ansi.StylePrimitive{
Color: stringPtr("#22CCAE"),
},
LiteralString: ansi.StylePrimitive{
Color: stringPtr("#7E5B38"),
},
LiteralStringEscape: ansi.StylePrimitive{
Color: stringPtr("#00AEAE"),
},
GenericDeleted: ansi.StylePrimitive{
Color: stringPtr("#FD5B5B"),
},
GenericEmph: ansi.StylePrimitive{
Italic: boolPtr(true),
},
GenericInserted: ansi.StylePrimitive{
Color: stringPtr("#00D787"),
},
GenericStrong: ansi.StylePrimitive{
Bold: boolPtr(true),
},
GenericSubheading: ansi.StylePrimitive{
Color: stringPtr("#777777"),
},
Background: ansi.StylePrimitive{
BackgroundColor: stringPtr("#373737"),
},
},
},
Table: ansi.StyleTable{
StyleBlock: ansi.StyleBlock{