1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-12-05 23:08:23 +02:00

Squish the GitHub style a bit.

This commit is contained in:
Alec Thomas
2017-09-25 21:58:29 +10:00
parent be25514088
commit c39abfb916

View File

@@ -4,8 +4,8 @@ import (
"github.com/alecthomas/chroma"
)
// Github style.
var Github = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
// GitHub style.
var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
chroma.CommentMultiline: "italic #999988",
chroma.CommentPreproc: "bold #999999",
chroma.CommentSingle: "italic #999988",
@@ -22,29 +22,10 @@ var Github = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
chroma.GenericStrong: "bold",
chroma.GenericSubheading: "#aaaaaa",
chroma.GenericTraceback: "#aa0000",
chroma.KeywordConstant: "bold #000000 ",
chroma.KeywordDeclaration: "bold #000000",
chroma.KeywordNamespace: "bold #000000",
chroma.KeywordPseudo: "bold #000000",
chroma.KeywordReserved: "bold #000000",
chroma.KeywordType: "bold #445588",
chroma.Keyword: "bold #000000",
chroma.LiteralNumberFloat: "#009999",
chroma.LiteralNumberHex: "#009999",
chroma.LiteralNumberIntegerLong: "#009999",
chroma.LiteralNumberInteger: "#009999",
chroma.LiteralNumberOct: "#009999",
chroma.LiteralNumber: "#009999",
chroma.LiteralStringBacktick: "#d14",
chroma.LiteralStringChar: "#d14",
chroma.LiteralStringDoc: "#d14",
chroma.LiteralStringDouble: "#d14",
chroma.LiteralStringEscape: "#d14",
chroma.LiteralStringHeredoc: "#d14",
chroma.LiteralStringInterpol: "#d14",
chroma.LiteralStringOther: "#d14",
chroma.LiteralStringRegex: "#009926",
chroma.LiteralStringSingle: "#d14",
chroma.LiteralStringSymbol: "#990073",
chroma.LiteralString: "#d14",
chroma.NameAttribute: "#008080",
@@ -63,7 +44,6 @@ var Github = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
chroma.NameVariableGlobal: "#008080",
chroma.NameVariableInstance: "#008080",
chroma.NameVariable: "#008080",
chroma.OperatorWord: "bold #000000",
chroma.Operator: "bold #000000",
chroma.TextWhitespace: "#bbbbbb",
chroma.Background: " bg:#ffffff",