mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-08 21:02:54 +02:00
Update Dependencies (#390)
Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: Norwin <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/390 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
81
vendor/github.com/alecthomas/chroma/styles/base16-snazzy.go
generated
vendored
Normal file
81
vendor/github.com/alecthomas/chroma/styles/base16-snazzy.go
generated
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Base16Snazzy style
|
||||
var Base16Snazzy = Register(chroma.MustNewStyle("base16-snazzy", chroma.StyleEntries{
|
||||
chroma.Comment: "#78787e",
|
||||
chroma.CommentHashbang: "#78787e",
|
||||
chroma.CommentMultiline: "#78787e",
|
||||
chroma.CommentPreproc: "#78787e",
|
||||
chroma.CommentSingle: "#78787e",
|
||||
chroma.CommentSpecial: "#78787e",
|
||||
chroma.Generic: "#e2e4e5",
|
||||
chroma.GenericDeleted: "#ff5c57",
|
||||
chroma.GenericEmph: "#e2e4e5 underline",
|
||||
chroma.GenericError: "#ff5c57",
|
||||
chroma.GenericHeading: "#e2e4e5 bold",
|
||||
chroma.GenericInserted: "#e2e4e5 bold",
|
||||
chroma.GenericOutput: "#43454f",
|
||||
chroma.GenericPrompt: "#e2e4e5",
|
||||
chroma.GenericStrong: "#e2e4e5 italic",
|
||||
chroma.GenericSubheading: "#e2e4e5 bold",
|
||||
chroma.GenericTraceback: "#e2e4e5",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#ff5c57",
|
||||
chroma.Keyword: "#ff6ac1",
|
||||
chroma.KeywordConstant: "#ff6ac1",
|
||||
chroma.KeywordDeclaration: "#ff5c57",
|
||||
chroma.KeywordNamespace: "#ff6ac1",
|
||||
chroma.KeywordPseudo: "#ff6ac1",
|
||||
chroma.KeywordReserved: "#ff6ac1",
|
||||
chroma.KeywordType: "#9aedfe",
|
||||
chroma.Literal: "#e2e4e5",
|
||||
chroma.LiteralDate: "#e2e4e5",
|
||||
chroma.Name: "#e2e4e5",
|
||||
chroma.NameAttribute: "#57c7ff",
|
||||
chroma.NameBuiltin: "#ff5c57",
|
||||
chroma.NameBuiltinPseudo: "#e2e4e5",
|
||||
chroma.NameClass: "#f3f99d",
|
||||
chroma.NameConstant: "#ff9f43",
|
||||
chroma.NameDecorator: "#ff9f43",
|
||||
chroma.NameEntity: "#e2e4e5",
|
||||
chroma.NameException: "#e2e4e5",
|
||||
chroma.NameFunction: "#57c7ff",
|
||||
chroma.NameLabel: "#ff5c57",
|
||||
chroma.NameNamespace: "#e2e4e5",
|
||||
chroma.NameOther: "#e2e4e5",
|
||||
chroma.NameTag: "#ff6ac1",
|
||||
chroma.NameVariable: "#ff5c57",
|
||||
chroma.NameVariableClass: "#ff5c57",
|
||||
chroma.NameVariableGlobal: "#ff5c57",
|
||||
chroma.NameVariableInstance: "#ff5c57",
|
||||
chroma.LiteralNumber: "#ff9f43",
|
||||
chroma.LiteralNumberBin: "#ff9f43",
|
||||
chroma.LiteralNumberFloat: "#ff9f43",
|
||||
chroma.LiteralNumberHex: "#ff9f43",
|
||||
chroma.LiteralNumberInteger: "#ff9f43",
|
||||
chroma.LiteralNumberIntegerLong: "#ff9f43",
|
||||
chroma.LiteralNumberOct: "#ff9f43",
|
||||
chroma.Operator: "#ff6ac1",
|
||||
chroma.OperatorWord: "#ff6ac1",
|
||||
chroma.Other: "#e2e4e5",
|
||||
chroma.Punctuation: "#e2e4e5",
|
||||
chroma.LiteralString: "#5af78e",
|
||||
chroma.LiteralStringBacktick: "#5af78e",
|
||||
chroma.LiteralStringChar: "#5af78e",
|
||||
chroma.LiteralStringDoc: "#5af78e",
|
||||
chroma.LiteralStringDouble: "#5af78e",
|
||||
chroma.LiteralStringEscape: "#5af78e",
|
||||
chroma.LiteralStringHeredoc: "#5af78e",
|
||||
chroma.LiteralStringInterpol: "#5af78e",
|
||||
chroma.LiteralStringOther: "#5af78e",
|
||||
chroma.LiteralStringRegex: "#5af78e",
|
||||
chroma.LiteralStringSingle: "#5af78e",
|
||||
chroma.LiteralStringSymbol: "#5af78e",
|
||||
chroma.Text: "#e2e4e5",
|
||||
chroma.TextWhitespace: "#e2e4e5",
|
||||
chroma.Background: " bg:#282a36",
|
||||
}))
|
58
vendor/github.com/alecthomas/chroma/styles/doom-one.go
generated
vendored
Normal file
58
vendor/github.com/alecthomas/chroma/styles/doom-one.go
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Doom One style. Inspired by Atom One and Doom Emacs's Atom One theme
|
||||
var DoomOne = Register(chroma.MustNewStyle("doom-one", chroma.StyleEntries{
|
||||
chroma.Text: "#b0c4de",
|
||||
chroma.Error: "#b0c4de",
|
||||
chroma.Comment: "italic #8a93a5",
|
||||
chroma.CommentHashbang: "bold",
|
||||
chroma.Keyword: "#c678dd",
|
||||
chroma.KeywordType: "#ef8383",
|
||||
chroma.KeywordConstant: "bold #b756ff",
|
||||
chroma.Operator: "#c7bf54",
|
||||
chroma.OperatorWord: "bold #b756ff",
|
||||
chroma.Punctuation: "#b0c4de",
|
||||
chroma.Name: "#c1abea",
|
||||
chroma.NameAttribute: "#b3d23c",
|
||||
chroma.NameBuiltin: "#ef8383",
|
||||
chroma.NameClass: "#76a9f9",
|
||||
chroma.NameConstant: "bold #b756ff",
|
||||
chroma.NameDecorator: "#e5c07b",
|
||||
chroma.NameEntity: "#bda26f",
|
||||
chroma.NameException: "bold #fd7474",
|
||||
chroma.NameFunction: "#00b1f7",
|
||||
chroma.NameProperty: "#cebc3a",
|
||||
chroma.NameLabel: "#f5a40d",
|
||||
chroma.NameNamespace: "#76a9f9",
|
||||
chroma.NameTag: "#e06c75",
|
||||
chroma.NameVariable: "#DCAEEA",
|
||||
chroma.NameVariableGlobal: "bold #DCAEEA",
|
||||
chroma.NameVariableInstance: "#e06c75",
|
||||
chroma.Literal: "#98c379",
|
||||
chroma.Number: "#d19a66",
|
||||
chroma.String: "#98c379",
|
||||
chroma.StringDoc: "#7e97c3",
|
||||
chroma.StringDouble: "#63c381",
|
||||
chroma.StringEscape: "bold #d26464",
|
||||
chroma.StringHeredoc: "#98c379",
|
||||
chroma.StringInterpol: "#98c379",
|
||||
chroma.StringOther: "#70b33f",
|
||||
chroma.StringRegex: "#56b6c2",
|
||||
chroma.StringSingle: "#98c379",
|
||||
chroma.StringSymbol: "#56b6c2",
|
||||
chroma.Generic: "#b0c4de",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #a2cbff",
|
||||
chroma.GenericInserted: "#a6e22e",
|
||||
chroma.GenericOutput: "#a6e22e",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.GenericPrompt: "#a6e22e",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#a2cbff",
|
||||
chroma.GenericTraceback: "#a2cbff",
|
||||
chroma.Background: "#b0c4de bg:#282c34",
|
||||
}))
|
71
vendor/github.com/alecthomas/chroma/styles/doom-one2.go
generated
vendored
Normal file
71
vendor/github.com/alecthomas/chroma/styles/doom-one2.go
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Doom One 2 style. Inspired by Atom One and Doom Emacs's Atom One theme
|
||||
var DoomOne2 = Register(chroma.MustNewStyle("doom-one2", chroma.StyleEntries{
|
||||
chroma.Text: "#b0c4de",
|
||||
chroma.Error: "#b0c4de",
|
||||
chroma.Comment: "italic #8a93a5",
|
||||
chroma.CommentHashbang: "bold",
|
||||
chroma.Keyword: "#76a9f9",
|
||||
chroma.KeywordConstant: "#e5c07b",
|
||||
chroma.KeywordType: "#e5c07b",
|
||||
chroma.Operator: "#54b1c7",
|
||||
chroma.OperatorWord: "bold #b756ff",
|
||||
chroma.Punctuation: "#abb2bf",
|
||||
chroma.Name: "#aa89ea",
|
||||
chroma.NameAttribute: "#cebc3a",
|
||||
chroma.NameBuiltin: "#e5c07b",
|
||||
chroma.NameClass: "#ca72ff",
|
||||
chroma.NameConstant: "bold",
|
||||
chroma.NameDecorator: "#e5c07b",
|
||||
chroma.NameEntity: "#bda26f",
|
||||
chroma.NameException: "bold #fd7474",
|
||||
chroma.NameFunction: "#00b1f7",
|
||||
chroma.NameProperty: "#cebc3a",
|
||||
chroma.NameLabel: "#f5a40d",
|
||||
chroma.NameNamespace: "#ca72ff",
|
||||
chroma.NameTag: "#76a9f9",
|
||||
chroma.NameVariable: "#DCAEEA",
|
||||
chroma.NameVariableClass: "#DCAEEA",
|
||||
chroma.NameVariableGlobal: "bold #DCAEEA",
|
||||
chroma.NameVariableInstance: "#e06c75",
|
||||
chroma.NameVariableMagic: "#DCAEEA",
|
||||
chroma.Literal: "#98c379",
|
||||
chroma.LiteralDate: "#98c379",
|
||||
chroma.Number: "#d19a66",
|
||||
chroma.NumberBin: "#d19a66",
|
||||
chroma.NumberFloat: "#d19a66",
|
||||
chroma.NumberHex: "#d19a66",
|
||||
chroma.NumberInteger: "#d19a66",
|
||||
chroma.NumberIntegerLong: "#d19a66",
|
||||
chroma.NumberOct: "#d19a66",
|
||||
chroma.String: "#98c379",
|
||||
chroma.StringAffix: "#98c379",
|
||||
chroma.StringBacktick: "#98c379",
|
||||
chroma.StringDelimiter: "#98c379",
|
||||
chroma.StringDoc: "#7e97c3",
|
||||
chroma.StringDouble: "#63c381",
|
||||
chroma.StringEscape: "bold #d26464",
|
||||
chroma.StringHeredoc: "#98c379",
|
||||
chroma.StringInterpol: "#98c379",
|
||||
chroma.StringOther: "#70b33f",
|
||||
chroma.StringRegex: "#56b6c2",
|
||||
chroma.StringSingle: "#98c379",
|
||||
chroma.StringSymbol: "#56b6c2",
|
||||
chroma.Generic: "#b0c4de",
|
||||
chroma.GenericDeleted: "#b0c4de",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #a2cbff",
|
||||
chroma.GenericInserted: "#a6e22e",
|
||||
chroma.GenericOutput: "#a6e22e",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.GenericPrompt: "#a6e22e",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#a2cbff",
|
||||
chroma.GenericTraceback: "#a2cbff",
|
||||
chroma.Background: "#b0c4de bg:#282c34",
|
||||
}))
|
4
vendor/github.com/alecthomas/chroma/styles/dracula.go
generated
vendored
4
vendor/github.com/alecthomas/chroma/styles/dracula.go
generated
vendored
@ -13,11 +13,11 @@ var Dracula = Register(chroma.MustNewStyle("dracula", chroma.StyleEntries{
|
||||
chroma.CommentSingle: "#6272a4",
|
||||
chroma.CommentSpecial: "#6272a4",
|
||||
chroma.Generic: "#f8f8f2",
|
||||
chroma.GenericDeleted: "#8b080b",
|
||||
chroma.GenericDeleted: "#ff5555",
|
||||
chroma.GenericEmph: "#f8f8f2 underline",
|
||||
chroma.GenericError: "#f8f8f2",
|
||||
chroma.GenericHeading: "#f8f8f2 bold",
|
||||
chroma.GenericInserted: "#f8f8f2 bold",
|
||||
chroma.GenericInserted: "#50fa7b bold",
|
||||
chroma.GenericOutput: "#44475a",
|
||||
chroma.GenericPrompt: "#f8f8f2",
|
||||
chroma.GenericStrong: "#f8f8f2",
|
||||
|
17
vendor/github.com/alecthomas/chroma/styles/hr_dark.go
generated
vendored
Normal file
17
vendor/github.com/alecthomas/chroma/styles/hr_dark.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Theme based on HackerRank Dark Editor theme
|
||||
var HrDark = Register(chroma.MustNewStyle("hrdark", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #828b96",
|
||||
chroma.Keyword: "#ff636f",
|
||||
chroma.OperatorWord: "#ff636f",
|
||||
chroma.Name: "#58a1dd",
|
||||
chroma.Literal: "#a6be9d",
|
||||
chroma.Operator: "#ff636f",
|
||||
chroma.Background: "#1d2432",
|
||||
chroma.Other: "#fff",
|
||||
}))
|
19
vendor/github.com/alecthomas/chroma/styles/hr_high_contrast.go
generated
vendored
Normal file
19
vendor/github.com/alecthomas/chroma/styles/hr_high_contrast.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Theme based on HackerRank High Contrast Editor Theme
|
||||
var HrHighContrast = Register(chroma.MustNewStyle("hr_high_contrast", chroma.StyleEntries{
|
||||
chroma.Comment: "#5a8349",
|
||||
chroma.Keyword: "#467faf",
|
||||
chroma.OperatorWord: "#467faf",
|
||||
chroma.Name: "#ffffff",
|
||||
chroma.LiteralString: "#a87662",
|
||||
chroma.LiteralNumber: "#fff",
|
||||
chroma.LiteralStringBoolean: "#467faf",
|
||||
chroma.Operator: "#e4e400",
|
||||
chroma.Background: "#000",
|
||||
chroma.Other: "#d5d500",
|
||||
}))
|
75
vendor/github.com/alecthomas/chroma/styles/nord.go
generated
vendored
Normal file
75
vendor/github.com/alecthomas/chroma/styles/nord.go
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
var (
|
||||
// colors and palettes based on https://www.nordtheme.com/docs/colors-and-palettes
|
||||
nord0 = "#2e3440"
|
||||
nord1 = "#3b4252" // nolint
|
||||
nord2 = "#434c5e" // nolint
|
||||
nord3 = "#4c566a"
|
||||
nord3b = "#616e87"
|
||||
|
||||
nord4 = "#d8dee9"
|
||||
nord5 = "#e5e9f0" // nolint
|
||||
nord6 = "#eceff4"
|
||||
|
||||
nord7 = "#8fbcbb"
|
||||
nord8 = "#88c0d0"
|
||||
nord9 = "#81a1c1"
|
||||
nord10 = "#5e81ac"
|
||||
|
||||
nord11 = "#bf616a"
|
||||
nord12 = "#d08770"
|
||||
nord13 = "#ebcb8b"
|
||||
nord14 = "#a3be8c"
|
||||
nord15 = "#b48ead"
|
||||
)
|
||||
|
||||
// Nord, an arctic, north-bluish color palette
|
||||
var Nord = Register(chroma.MustNewStyle("nord", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: nord4,
|
||||
chroma.Comment: "italic " + nord3b,
|
||||
chroma.CommentPreproc: nord10,
|
||||
chroma.Keyword: "bold " + nord9,
|
||||
chroma.KeywordPseudo: "nobold " + nord9,
|
||||
chroma.KeywordType: "nobold " + nord9,
|
||||
chroma.Operator: nord9,
|
||||
chroma.OperatorWord: "bold " + nord9,
|
||||
chroma.Name: nord4,
|
||||
chroma.NameBuiltin: nord9,
|
||||
chroma.NameFunction: nord8,
|
||||
chroma.NameClass: nord7,
|
||||
chroma.NameNamespace: nord7,
|
||||
chroma.NameException: nord11,
|
||||
chroma.NameVariable: nord4,
|
||||
chroma.NameConstant: nord7,
|
||||
chroma.NameLabel: nord7,
|
||||
chroma.NameEntity: nord12,
|
||||
chroma.NameAttribute: nord7,
|
||||
chroma.NameTag: nord9,
|
||||
chroma.NameDecorator: nord12,
|
||||
chroma.Punctuation: nord6,
|
||||
chroma.LiteralString: nord14,
|
||||
chroma.LiteralStringDoc: nord3b,
|
||||
chroma.LiteralStringInterpol: nord14,
|
||||
chroma.LiteralStringEscape: nord13,
|
||||
chroma.LiteralStringRegex: nord13,
|
||||
chroma.LiteralStringSymbol: nord14,
|
||||
chroma.LiteralStringOther: nord14,
|
||||
chroma.LiteralNumber: nord15,
|
||||
chroma.GenericHeading: "bold " + nord8,
|
||||
chroma.GenericSubheading: "bold " + nord8,
|
||||
chroma.GenericDeleted: nord11,
|
||||
chroma.GenericInserted: nord14,
|
||||
chroma.GenericError: nord11,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + nord3,
|
||||
chroma.GenericOutput: nord4,
|
||||
chroma.GenericTraceback: nord11,
|
||||
chroma.Error: nord11,
|
||||
chroma.Background: nord4 + " bg:" + nord0,
|
||||
}))
|
95
vendor/github.com/alecthomas/chroma/styles/vulcan.go
generated
vendored
Normal file
95
vendor/github.com/alecthomas/chroma/styles/vulcan.go
generated
vendored
Normal file
@ -0,0 +1,95 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
var (
|
||||
// inspired by Doom Emacs's One Doom Theme
|
||||
black = "#282C34"
|
||||
grey = "#3E4460"
|
||||
grey2 = "#43454f"
|
||||
white = "#C9C9C9"
|
||||
red = "#CF5967"
|
||||
yellow = "#ECBE7B"
|
||||
green = "#82CC6A"
|
||||
cyan = "#56B6C2"
|
||||
blue = "#7FBAF5"
|
||||
blue2 = "#57C7FF"
|
||||
purple = "#BC74C4"
|
||||
)
|
||||
|
||||
var Vulcan = Register(chroma.MustNewStyle("vulcan", chroma.StyleEntries{
|
||||
chroma.Comment: grey,
|
||||
chroma.CommentHashbang: grey + " italic",
|
||||
chroma.CommentMultiline: grey,
|
||||
chroma.CommentPreproc: blue,
|
||||
chroma.CommentSingle: grey,
|
||||
chroma.CommentSpecial: purple + " italic",
|
||||
chroma.Generic: white,
|
||||
chroma.GenericDeleted: red,
|
||||
chroma.GenericEmph: white + " underline",
|
||||
chroma.GenericError: red + " bold",
|
||||
chroma.GenericHeading: yellow + " bold",
|
||||
chroma.GenericInserted: yellow,
|
||||
chroma.GenericOutput: grey2,
|
||||
chroma.GenericPrompt: white,
|
||||
chroma.GenericStrong: red + " bold",
|
||||
chroma.GenericSubheading: red + " italic",
|
||||
chroma.GenericTraceback: white,
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: red,
|
||||
chroma.Keyword: blue,
|
||||
chroma.KeywordConstant: red + " bg:" + grey2,
|
||||
chroma.KeywordDeclaration: blue,
|
||||
chroma.KeywordNamespace: purple,
|
||||
chroma.KeywordPseudo: purple,
|
||||
chroma.KeywordReserved: blue,
|
||||
chroma.KeywordType: blue2 + " bold",
|
||||
chroma.Literal: white,
|
||||
chroma.LiteralDate: blue2,
|
||||
chroma.Name: white,
|
||||
chroma.NameAttribute: purple,
|
||||
chroma.NameBuiltin: blue,
|
||||
chroma.NameBuiltinPseudo: blue,
|
||||
chroma.NameClass: yellow,
|
||||
chroma.NameConstant: yellow,
|
||||
chroma.NameDecorator: yellow,
|
||||
chroma.NameEntity: white,
|
||||
chroma.NameException: red,
|
||||
chroma.NameFunction: blue2,
|
||||
chroma.NameLabel: red,
|
||||
chroma.NameNamespace: white,
|
||||
chroma.NameOther: white,
|
||||
chroma.NameTag: purple,
|
||||
chroma.NameVariable: purple + " italic",
|
||||
chroma.NameVariableClass: blue2 + " bold",
|
||||
chroma.NameVariableGlobal: yellow,
|
||||
chroma.NameVariableInstance: blue2,
|
||||
chroma.LiteralNumber: cyan,
|
||||
chroma.LiteralNumberBin: blue2,
|
||||
chroma.LiteralNumberFloat: cyan,
|
||||
chroma.LiteralNumberHex: blue2,
|
||||
chroma.LiteralNumberInteger: cyan,
|
||||
chroma.LiteralNumberIntegerLong: cyan,
|
||||
chroma.LiteralNumberOct: blue2,
|
||||
chroma.Operator: purple,
|
||||
chroma.OperatorWord: purple,
|
||||
chroma.Other: white,
|
||||
chroma.Punctuation: cyan,
|
||||
chroma.LiteralString: green,
|
||||
chroma.LiteralStringBacktick: blue2,
|
||||
chroma.LiteralStringChar: blue2,
|
||||
chroma.LiteralStringDoc: green,
|
||||
chroma.LiteralStringDouble: green,
|
||||
chroma.LiteralStringEscape: cyan,
|
||||
chroma.LiteralStringHeredoc: cyan,
|
||||
chroma.LiteralStringInterpol: green,
|
||||
chroma.LiteralStringOther: green,
|
||||
chroma.LiteralStringRegex: blue2,
|
||||
chroma.LiteralStringSingle: green,
|
||||
chroma.LiteralStringSymbol: green,
|
||||
chroma.Text: white,
|
||||
chroma.TextWhitespace: white,
|
||||
chroma.Background: " bg: " + black,
|
||||
}))
|
62
vendor/github.com/alecthomas/chroma/styles/xcode-dark.go
generated
vendored
Normal file
62
vendor/github.com/alecthomas/chroma/styles/xcode-dark.go
generated
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
var (
|
||||
// Inspired by Apple's Xcode "Default (Dark)" Theme
|
||||
background = "#1F1F24"
|
||||
plainText = "#FFFFFF"
|
||||
comments = "#6C7986"
|
||||
strings = "#FC6A5D"
|
||||
numbers = "#D0BF69"
|
||||
keywords = "#FC5FA3"
|
||||
preprocessorStatements = "#FD8F3F"
|
||||
typeDeclarations = "#5DD8FF"
|
||||
otherDeclarations = "#41A1C0"
|
||||
otherFunctionAndMethodNames = "#A167E6"
|
||||
otherTypeNames = "#D0A8FF"
|
||||
)
|
||||
|
||||
// Xcode dark style
|
||||
var XcodeDark = Register(chroma.MustNewStyle("xcode-dark", chroma.StyleEntries{
|
||||
chroma.Background: plainText + " bg: " + background,
|
||||
|
||||
chroma.Comment: comments,
|
||||
chroma.CommentMultiline: comments,
|
||||
chroma.CommentPreproc: preprocessorStatements,
|
||||
chroma.CommentSingle: comments,
|
||||
chroma.CommentSpecial: comments + " italic",
|
||||
|
||||
chroma.Error: "#960050",
|
||||
|
||||
chroma.Keyword: keywords,
|
||||
chroma.KeywordConstant: keywords,
|
||||
chroma.KeywordDeclaration: keywords,
|
||||
chroma.KeywordReserved: keywords,
|
||||
|
||||
chroma.LiteralNumber: numbers,
|
||||
chroma.LiteralNumberBin: numbers,
|
||||
chroma.LiteralNumberFloat: numbers,
|
||||
chroma.LiteralNumberHex: numbers,
|
||||
chroma.LiteralNumberInteger: numbers,
|
||||
chroma.LiteralNumberOct: numbers,
|
||||
|
||||
chroma.LiteralString: strings,
|
||||
chroma.LiteralStringEscape: strings,
|
||||
chroma.LiteralStringInterpol: plainText,
|
||||
|
||||
chroma.Name: plainText,
|
||||
chroma.NameBuiltin: otherTypeNames,
|
||||
chroma.NameBuiltinPseudo: otherFunctionAndMethodNames,
|
||||
chroma.NameClass: typeDeclarations,
|
||||
chroma.NameFunction: otherDeclarations,
|
||||
chroma.NameVariable: otherDeclarations,
|
||||
|
||||
chroma.Operator: plainText,
|
||||
|
||||
chroma.Punctuation: plainText,
|
||||
|
||||
chroma.Text: plainText,
|
||||
}))
|
Reference in New Issue
Block a user