Mercurial > yakumo_izuru > aya
comparison vendor/github.com/alecthomas/chroma/v2/styles/xcode-dark.go @ 66:787b5ee0289d draft
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Sun, 23 Jul 2023 13:18:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
65:6d985efa0f7a | 66:787b5ee0289d |
---|---|
1 package styles | |
2 | |
3 import ( | |
4 "github.com/alecthomas/chroma/v2" | |
5 ) | |
6 | |
7 var ( | |
8 // Inspired by Apple's Xcode "Default (Dark)" Theme | |
9 background = "#1F1F24" | |
10 plainText = "#FFFFFF" | |
11 comments = "#6C7986" | |
12 strings = "#FC6A5D" | |
13 numbers = "#D0BF69" | |
14 keywords = "#FC5FA3" | |
15 preprocessorStatements = "#FD8F3F" | |
16 typeDeclarations = "#5DD8FF" | |
17 otherDeclarations = "#41A1C0" | |
18 otherFunctionAndMethodNames = "#A167E6" | |
19 otherTypeNames = "#D0A8FF" | |
20 ) | |
21 | |
22 // Xcode dark style | |
23 var XcodeDark = Register(chroma.MustNewStyle("xcode-dark", chroma.StyleEntries{ | |
24 chroma.Background: plainText + " bg:" + background, | |
25 | |
26 chroma.Comment: comments, | |
27 chroma.CommentMultiline: comments, | |
28 chroma.CommentPreproc: preprocessorStatements, | |
29 chroma.CommentSingle: comments, | |
30 chroma.CommentSpecial: comments + " italic", | |
31 | |
32 chroma.Error: "#960050", | |
33 | |
34 chroma.Keyword: keywords, | |
35 chroma.KeywordConstant: keywords, | |
36 chroma.KeywordDeclaration: keywords, | |
37 chroma.KeywordReserved: keywords, | |
38 | |
39 chroma.LiteralNumber: numbers, | |
40 chroma.LiteralNumberBin: numbers, | |
41 chroma.LiteralNumberFloat: numbers, | |
42 chroma.LiteralNumberHex: numbers, | |
43 chroma.LiteralNumberInteger: numbers, | |
44 chroma.LiteralNumberOct: numbers, | |
45 | |
46 chroma.LiteralString: strings, | |
47 chroma.LiteralStringEscape: strings, | |
48 chroma.LiteralStringInterpol: plainText, | |
49 | |
50 chroma.Name: plainText, | |
51 chroma.NameBuiltin: otherTypeNames, | |
52 chroma.NameBuiltinPseudo: otherFunctionAndMethodNames, | |
53 chroma.NameClass: typeDeclarations, | |
54 chroma.NameFunction: otherDeclarations, | |
55 chroma.NameVariable: otherDeclarations, | |
56 | |
57 chroma.Operator: plainText, | |
58 | |
59 chroma.Punctuation: plainText, | |
60 | |
61 chroma.Text: plainText, | |
62 })) |