/
Styles.hs
548 lines (536 loc) · 22.2 KB
/
Styles.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
module Skylighting.Styles (
parseTheme
, kate
, breezeDark
, pygments
, espresso
, tango
, haddock
, monochrome
, zenburn) where
import Data.Aeson (eitherDecode)
import Data.ByteString.Lazy (ByteString)
import qualified Data.Map as Map
import Skylighting.Types
-- | Parse a KDE theme JSON document into a skylighting Style.
parseTheme :: ByteString -> Either String Style
parseTheme = eitherDecode
color :: Int -> Maybe Color
color = toColor
-- | Style based on kate's default colors.
kate :: Style
kate = Style{
tokenStyles = Map.fromList
[ ( KeywordTok, defStyle { tokenColor = Just (RGB 31 28 27), tokenBold = True })
, ( DataTypeTok, defStyle { tokenColor = Just (RGB 0 87 174) })
, ( DecValTok, defStyle { tokenColor = Just (RGB 176 128 0) })
, ( BaseNTok, defStyle { tokenColor = Just (RGB 176 128 0) })
, ( FloatTok, defStyle { tokenColor = Just (RGB 176 128 0) })
, ( ConstantTok, defStyle { tokenColor = Just (RGB 170 85 0) })
, ( CharTok, defStyle { tokenColor = Just (RGB 146 76 157) })
, ( SpecialCharTok, defStyle { tokenColor = Just (RGB 61 174 233) })
, ( StringTok, defStyle { tokenColor = Just (RGB 191 3 3) })
, ( VerbatimStringTok, defStyle { tokenColor = Just (RGB 191 3 3) })
, ( SpecialStringTok, defStyle { tokenColor = Just (RGB 255 85 0) })
, ( ImportTok, defStyle { tokenColor = Just (RGB 255 85 0) })
, ( CommentTok, defStyle { tokenColor = Just (RGB 137 136 135) })
, ( DocumentationTok, defStyle { tokenColor = Just (RGB 96 120 128) })
, ( AnnotationTok, defStyle { tokenColor = Just (RGB 202 96 202) })
, ( CommentVarTok, defStyle { tokenColor = Just (RGB 0 149 255) })
, ( OtherTok, defStyle { tokenColor = Just (RGB 0 110 40) })
, ( FunctionTok, defStyle { tokenColor = Just (RGB 100 74 155) })
, ( VariableTok, defStyle { tokenColor = Just (RGB 0 87 174) })
, ( ControlFlowTok, defStyle { tokenColor = Just (RGB 31 28 27), tokenBold = True })
, ( OperatorTok, defStyle { tokenColor = Just (RGB 31 28 27) })
, ( BuiltInTok, defStyle { tokenColor = Just (RGB 100 74 155), tokenBold = True })
, ( ExtensionTok, defStyle { tokenColor = Just (RGB 0 149 255), tokenBold = True })
, ( PreprocessorTok, defStyle { tokenColor = Just (RGB 0 110 40) })
, ( AttributeTok, defStyle { tokenColor = Just (RGB 0 87 174) })
, ( RegionMarkerTok, defStyle { tokenColor = Just (RGB 0 87 174), tokenBackground = Just (RGB 224 233 248)} )
, ( InformationTok, defStyle { tokenColor = Just (RGB 176 128 0) })
, ( WarningTok, defStyle { tokenColor = Just (RGB 191 3 3) })
, ( AlertTok, defStyle { tokenColor = Just (RGB 191 3 3), tokenBackground = Just (RGB 247 230 230), tokenBold = True })
, ( ErrorTok, defStyle { tokenColor = Just (RGB 191 3 3), tokenUnderline = True })
, ( NormalTok, defStyle { tokenColor = Just (RGB 31 28 27) })
]
, defaultColor = Just (RGB 31 28 27)
, backgroundColor = Just (RGB 255 255 255)
, lineNumberColor = Just (RGB 160 160 160)
, lineNumberBackgroundColor = Just (RGB 255 255 255)
}
-- | Style from the breeze-dark KDE syntax highlighting theme.
breezeDark :: Style
breezeDark = Style
{ tokenStyles = Map.fromList
[ ( KeywordTok, defStyle { tokenColor = Just (RGB 207 207 194), tokenBold = True })
, ( DataTypeTok, defStyle { tokenColor = Just (RGB 41 128 185) })
, ( DecValTok, defStyle { tokenColor = Just (RGB 246 116 0) })
, ( BaseNTok, defStyle { tokenColor = Just (RGB 246 116 0) })
, ( FloatTok, defStyle { tokenColor = Just (RGB 246 116 0) })
, ( ConstantTok, defStyle { tokenColor = Just (RGB 39 174 174), tokenBold = True })
, ( CharTok, defStyle { tokenColor = Just (RGB 61 174 233) })
, ( SpecialCharTok, defStyle { tokenColor = Just (RGB 61 174 233) })
, ( StringTok, defStyle { tokenColor = Just (RGB 244 79 79) })
, ( VerbatimStringTok, defStyle { tokenColor = Just (RGB 218 68 83) })
, ( SpecialStringTok, defStyle { tokenColor = Just (RGB 218 68 83) })
, ( ImportTok, defStyle { tokenColor = Just (RGB 39 174 96) })
, ( CommentTok, defStyle { tokenColor = Just (RGB 122 124 125) })
, ( DocumentationTok, defStyle { tokenColor = Just (RGB 164 51 64) })
, ( AnnotationTok, defStyle { tokenColor = Just (RGB 63 128 88) })
, ( CommentVarTok, defStyle { tokenColor = Just (RGB 127 140 141) })
, ( OtherTok, defStyle { tokenColor = Just (RGB 39 174 96) })
, ( FunctionTok, defStyle { tokenColor = Just (RGB 142 68 173) })
, ( VariableTok, defStyle { tokenColor = Just (RGB 39 174 174) })
, ( ControlFlowTok, defStyle { tokenColor = Just (RGB 253 188 75), tokenBold = True })
, ( OperatorTok, defStyle { tokenColor = Just (RGB 207 207 194) })
, ( BuiltInTok, defStyle { tokenColor = Just (RGB 127 140 141) })
, ( ExtensionTok, defStyle { tokenColor = Just (RGB 0 153 255), tokenBold = True })
, ( PreprocessorTok, defStyle { tokenColor = Just (RGB 39 174 96) })
, ( AttributeTok, defStyle { tokenColor = Just (RGB 41 128 185) })
, ( RegionMarkerTok, defStyle { tokenColor = Just (RGB 41 128 185), tokenBackground = Just (RGB 21 48 66) })
, ( InformationTok, defStyle { tokenColor = Just (RGB 196 91 0) })
, ( WarningTok, defStyle { tokenColor = Just (RGB 218 68 83) })
, ( AlertTok, defStyle { tokenColor = Just (RGB 149 218 76), tokenBackground = Just (RGB 77 31 36), tokenBold = True })
, ( ErrorTok, defStyle { tokenColor = Just (RGB 218 68 83), tokenUnderline = True })
, ( NormalTok, defStyle { tokenColor = Just (RGB 207 207 194) })
]
, defaultColor = Just (RGB 207 207 194)
, backgroundColor = Just (RGB 35 38 41)
, lineNumberColor = Just (RGB 122 124 125)
, lineNumberBackgroundColor = Just (RGB 35 38 41)
}
-- | Style based on pygments's default colors.
pygments :: Style
pygments = Style{
backgroundColor = Nothing
, defaultColor = Nothing
, lineNumberColor = color 0xaaaaaa
, lineNumberBackgroundColor = Nothing
, tokenStyles = Map.fromList
[ (KeywordTok, defStyle{ tokenColor = color 0x007020, tokenBold = True })
, (DataTypeTok, defStyle{ tokenColor = color 0x902000 })
, (DecValTok, defStyle{ tokenColor = color 0x40a070 })
, (BaseNTok, defStyle{ tokenColor = color 0x40a070 })
, (FloatTok, defStyle{ tokenColor = color 0x40a070 })
, (CharTok, defStyle{ tokenColor = color 0x4070a0 })
, (StringTok, defStyle{ tokenColor = color 0x4070a0 })
, (CommentTok, defStyle{ tokenColor = color 0x60a0b0, tokenItalic = True })
, (OtherTok, defStyle{ tokenColor = color 0x007020 })
, (AlertTok, defStyle{ tokenColor = color 0xff0000, tokenBold = True })
, (FunctionTok, defStyle{ tokenColor = color 0x06287e })
, (ErrorTok, defStyle{ tokenColor = color 0xff0000, tokenBold = True })
, (WarningTok, defStyle{ tokenColor = color 0x60a0b0, tokenItalic = True, tokenBold = True })
, (ConstantTok, defStyle{ tokenColor = color 0x880000 })
, (SpecialCharTok, defStyle{ tokenColor = color 0x4070a0 })
, (VerbatimStringTok, defStyle{ tokenColor = color 0x4070a0 })
, (SpecialStringTok, defStyle{ tokenColor = color 0xBB6688 })
, (ImportTok, defStyle{ tokenColor = color 0x008000, tokenBold = True})
, (VariableTok, defStyle{ tokenColor = color 0x19177C })
, (ControlFlowTok, defStyle{ tokenColor = color 0x007020, tokenBold = True })
, (OperatorTok, defStyle{ tokenColor = color 0x666666 })
, (BuiltInTok, defStyle{ tokenColor = color 0x008000})
, (ExtensionTok, defStyle)
, (PreprocessorTok, defStyle{ tokenColor = color 0xBC7A00 })
, (AttributeTok, defStyle{ tokenColor = color 0x7D9029 })
, (DocumentationTok, defStyle{ tokenColor = color 0xBA2121, tokenItalic = True })
, (AnnotationTok, defStyle{ tokenColor = color 0x60a0b0, tokenItalic = True, tokenBold = True })
, (CommentVarTok, defStyle{ tokenColor = color 0x60a0b0, tokenItalic = True, tokenBold = True })
, (InformationTok, defStyle{ tokenColor = color 0x60a0b0, tokenItalic = True, tokenBold = True })
]
}
-- | Style based on pygments's tango colors.
tango :: Style
tango = Style
{ tokenStyles =
Map.fromList
[ ( KeywordTok
, TokenStyle
{ tokenColor = Just (RGB 32 74 135)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
, ( DataTypeTok
, TokenStyle
{ tokenColor = Just (RGB 32 74 135)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( DecValTok
, TokenStyle
{ tokenColor = Just (RGB 0 0 207)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( BaseNTok
, TokenStyle
{ tokenColor = Just (RGB 0 0 207)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( FloatTok
, TokenStyle
{ tokenColor = Just (RGB 0 0 207)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( ConstantTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( CharTok
, TokenStyle
{ tokenColor = Just (RGB 78 154 6)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( SpecialCharTok
, TokenStyle
{ tokenColor = Just (RGB 206 92 0)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
, ( StringTok
, TokenStyle
{ tokenColor = Just (RGB 78 154 6)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( VerbatimStringTok
, TokenStyle
{ tokenColor = Just (RGB 78 154 6)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( SpecialStringTok
, TokenStyle
{ tokenColor = Just (RGB 78 154 6)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( ImportTok
, TokenStyle
{ tokenColor = Nothing
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( CommentTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = True
, tokenUnderline = False
}
)
, ( DocumentationTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = True
, tokenUnderline = False
}
)
, ( AnnotationTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = True
, tokenUnderline = False
}
)
, ( CommentVarTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = True
, tokenUnderline = False
}
)
, ( OtherTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( FunctionTok
, TokenStyle
{ tokenColor = Just (RGB 32 74 135)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
, ( VariableTok
, TokenStyle
{ tokenColor = Just (RGB 0 0 0)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( ControlFlowTok
, TokenStyle
{ tokenColor = Just (RGB 32 74 135)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
, ( OperatorTok
, TokenStyle
{ tokenColor = Just (RGB 206 92 0)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
, ( ExtensionTok
, TokenStyle
{ tokenColor = Nothing
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( PreprocessorTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = True
, tokenUnderline = False
}
)
, ( AttributeTok
, TokenStyle
{ tokenColor = Just (RGB 32 74 135)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( InformationTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = True
, tokenUnderline = False
}
)
, ( WarningTok
, TokenStyle
{ tokenColor = Just (RGB 143 89 2)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = True
, tokenUnderline = False
}
)
, ( AlertTok
, TokenStyle
{ tokenColor = Just (RGB 239 41 41)
, tokenBackground = Nothing
, tokenBold = False
, tokenItalic = False
, tokenUnderline = False
}
)
, ( ErrorTok
, TokenStyle
{ tokenColor = Just (RGB 164 0 0)
, tokenBackground = Nothing
, tokenBold = True
, tokenItalic = False
, tokenUnderline = False
}
)
]
, defaultColor = Nothing
, backgroundColor = Just (RGB 248 248 248)
, lineNumberColor = Just (RGB 170 170 170)
, lineNumberBackgroundColor = Nothing
}
-- | Style based on ultraviolet's espresso_libre.css (dark background).
espresso :: Style
espresso = Style{
backgroundColor = color 0x2A211C
, defaultColor = color 0xBDAE9D
, lineNumberColor = color 0xBDAE9D
, lineNumberBackgroundColor = color 0x2A211C
, tokenStyles = Map.fromList
[ (KeywordTok, defStyle{ tokenColor = color 0x43A8ED, tokenBold = True })
, (DataTypeTok, defStyle{ tokenUnderline = True })
, (DecValTok, defStyle{ tokenColor = color 0x44AA43 })
, (BaseNTok, defStyle{ tokenColor = color 0x44AA43 })
, (FloatTok, defStyle{ tokenColor = color 0x44AA43 })
, (CharTok, defStyle{ tokenColor = color 0x049B0A })
, (StringTok, defStyle{ tokenColor = color 0x049B0A })
, (CommentTok, defStyle{ tokenColor = color 0x0066FF, tokenItalic = True })
, (AlertTok, defStyle{ tokenColor = color 0xffff00 })
, (FunctionTok, defStyle{ tokenColor = color 0xFF9358, tokenBold = True })
, (ErrorTok, defStyle{ tokenColor = color 0xffff00, tokenBold = True })
, (WarningTok, defStyle{ tokenColor = color 0xffff00, tokenBold = True })
, (ConstantTok, defStyle)
, (SpecialCharTok, defStyle{ tokenColor = color 0x049B0A })
, (VerbatimStringTok, defStyle{ tokenColor = color 0x049B0A })
, (SpecialStringTok, defStyle{ tokenColor = color 0x049B0A })
, (ImportTok, defStyle)
, (VariableTok, defStyle)
, (ControlFlowTok, defStyle{ tokenColor = color 0x43A8ED, tokenBold = True })
, (OperatorTok, defStyle)
, (BuiltInTok, defStyle)
, (ExtensionTok, defStyle)
, (PreprocessorTok, defStyle{ tokenBold = True })
, (AttributeTok, defStyle)
, (DocumentationTok, defStyle{ tokenColor = color 0x0066FF, tokenItalic = True })
, (AnnotationTok, defStyle{ tokenColor = color 0x0066FF, tokenItalic = True, tokenBold = True })
, (CommentTok, defStyle{ tokenColor = color 0x0066FF, tokenItalic = True, tokenBold = True })
, (InformationTok, defStyle{ tokenColor = color 0x0066FF, tokenItalic = True, tokenBold = True })
]
}
-- | Style based on haddock's source highlighting.
haddock :: Style
haddock = Style{
backgroundColor = Nothing
, defaultColor = Nothing
, lineNumberColor = color 0xaaaaaa
, lineNumberBackgroundColor = Nothing
, tokenStyles = Map.fromList
[ (KeywordTok, defStyle{ tokenColor = color 0x0000FF })
, (CharTok, defStyle{ tokenColor = color 0x008080 })
, (StringTok, defStyle{ tokenColor = color 0x008080 })
, (CommentTok, defStyle{ tokenColor = color 0x008000 })
, (OtherTok, defStyle{ tokenColor = color 0xff4000 })
, (AlertTok, defStyle{ tokenColor = color 0xff0000 })
, (ErrorTok, defStyle{ tokenColor = color 0xff0000, tokenBold = True })
, (WarningTok, defStyle{ tokenColor = color 0x008000, tokenBold = True })
, (ConstantTok, defStyle)
, (SpecialCharTok, defStyle{ tokenColor = color 0x008080 })
, (VerbatimStringTok, defStyle{ tokenColor = color 0x008080 })
, (SpecialStringTok, defStyle{ tokenColor = color 0x008080 })
, (ImportTok, defStyle)
, (VariableTok, defStyle)
, (ControlFlowTok, defStyle{ tokenColor = color 0x0000FF })
, (OperatorTok, defStyle)
, (BuiltInTok, defStyle)
, (ExtensionTok, defStyle)
, (PreprocessorTok, defStyle{ tokenColor = color 0xff4000 })
, (DocumentationTok, defStyle{ tokenColor = color 0x008000 })
, (AnnotationTok, defStyle{ tokenColor = color 0x008000 })
, (CommentVarTok, defStyle{ tokenColor = color 0x008000 })
, (AttributeTok, defStyle)
, (InformationTok, defStyle{ tokenColor = color 0x008000 })
]
}
-- | Style with no colors.
monochrome :: Style
monochrome = Style{
backgroundColor = Nothing
, defaultColor = Nothing
, lineNumberColor = Nothing
, lineNumberBackgroundColor = Nothing
, tokenStyles = Map.fromList
[ (KeywordTok, defStyle{ tokenBold = True })
, (DataTypeTok, defStyle{ tokenUnderline = True })
, (CommentTok, defStyle{ tokenItalic = True })
, (AlertTok, defStyle{ tokenBold = True })
, (ErrorTok, defStyle{ tokenBold = True })
, (WarningTok, defStyle{ tokenItalic = True })
, (ControlFlowTok, defStyle{ tokenBold = True })
, (PreprocessorTok, defStyle{ tokenBold = True })
, (DocumentationTok, defStyle{ tokenItalic = True })
, (AnnotationTok, defStyle{ tokenItalic = True })
, (CommentVarTok, defStyle{ tokenItalic = True })
, (InformationTok, defStyle{ tokenItalic = True })
]
}
-- | Style based on the popular zenburn vim color scheme
zenburn :: Style
zenburn = Style{
backgroundColor = color 0x303030
, defaultColor = color 0xcccccc
, lineNumberColor = Nothing
, lineNumberBackgroundColor = Nothing
, tokenStyles = Map.fromList
[ (KeywordTok, defStyle{ tokenColor = color 0xf0dfaf })
, (DataTypeTok, defStyle{ tokenColor = color 0xdfdfbf })
, (DecValTok, defStyle{ tokenColor = color 0xdcdccc })
, (BaseNTok, defStyle{ tokenColor = color 0xdca3a3 })
, (FloatTok, defStyle{ tokenColor = color 0xc0bed1 })
, (CharTok, defStyle{ tokenColor = color 0xdca3a3 })
, (StringTok, defStyle{ tokenColor = color 0xcc9393 })
, (CommentTok, defStyle{ tokenColor = color 0x7f9f7f })
, (OtherTok, defStyle{ tokenColor = color 0xefef8f })
, (AlertTok, defStyle{ tokenColor = color 0xffcfaf })
, (FunctionTok, defStyle{ tokenColor = color 0xefef8f })
, (ErrorTok, defStyle{ tokenColor = color 0xc3bf9f })
, (WarningTok, defStyle{ tokenColor = color 0x7f9f7f, tokenBold = True })
, (ConstantTok, defStyle{ tokenColor = color 0xdca3a3, tokenBold = True })
, (SpecialCharTok, defStyle{ tokenColor = color 0xdca3a3 })
, (VerbatimStringTok, defStyle{ tokenColor = color 0xcc9393 })
, (SpecialStringTok, defStyle{ tokenColor = color 0xcc9393 })
, (ImportTok, defStyle)
, (VariableTok, defStyle)
, (ControlFlowTok, defStyle{ tokenColor = color 0xf0dfaf })
, (OperatorTok, defStyle{ tokenColor = color 0xf0efd0 })
, (BuiltInTok, defStyle)
, (ExtensionTok, defStyle)
, (PreprocessorTok, defStyle{ tokenColor = color 0xffcfaf, tokenBold = True })
, (AttributeTok, defStyle)
, (DocumentationTok, defStyle{ tokenColor = color 0x7f9f7f })
, (AnnotationTok, defStyle{ tokenColor = color 0x7f9f7f, tokenBold = True })
, (CommentVarTok, defStyle{ tokenColor = color 0x7f9f7f, tokenBold = True })
, (InformationTok, defStyle{ tokenColor = color 0x7f9f7f, tokenBold = True })
]
}