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
|
-- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Terminal lexer theme for Textadept.
-- Contributions by Ana Balan.
-- Please note this theme is in a separate Lua state than Textadept's main one.
-- This means the global variables like 'buffer', 'view', and 'gui' are not
-- available here. Only the variables in the 'lexer' module are.
local l, color, style = lexer, lexer.color, lexer.style
l.colors = {
-- Normal colors.
black = color('00', '00', '00'),
red = color('80', '00', '00'),
green = color('00', '80', '00'),
yellow = color('80', '80', '00'),
blue = color('00', '00', '80'),
magenta = color('80', '00', '80'),
cyan = color('00', '80', '80'),
white = color('C0', 'C0', 'C0'),
-- Light colors. (16 color terminals only.)
-- These only apply to 16 color terminals. For other terminals, set the
-- style's `bold` attribute to use the light color variant.
light_black = color('40', '40', '40'),
light_red = color('FF', '00', '00'),
light_green = color('00', 'FF', '00'),
light_yellow = color('FF', 'FF', '00'),
light_blue = color('00', '00', 'FF'),
light_magenta = color('FF', '00', 'FF'),
light_cyan = color('00', 'FF', 'FF'),
light_white = color('FF', 'FF', 'FF'),
}
l.style_nothing = style{ }
l.style_class = style{fore = l.colors.yellow, bold = true }
l.style_comment = style{fore = l.colors.black, bold = true }
l.style_constant = style{fore = l.colors.red }
l.style_definition = style{fore = l.colors.yellow, bold = true }
l.style_error = style{fore = l.colors.red, bold = true }
l.style_function = style{fore = l.colors.blue }
l.style_keyword = style{fore = l.colors.white, bold = true }
l.style_label = style{fore = l.colors.red, bold = true }
l.style_number = style{fore = l.colors.cyan }
l.style_operator = style{fore = l.colors.yellow }
l.style_regex = style{fore = l.colors.green, bold = true }
l.style_string = style{fore = l.colors.green }
l.style_preproc = style{fore = l.colors.magenta }
l.style_tag = style{fore = l.colors.white, bold = true }
l.style_type = style{fore = l.colors.magenta, bold = true}
l.style_variable = style{fore = l.colors.blue, bold = true }
l.style_whitespace = l.style_nothing
l.style_embedded = l.style_tag..{back = l.colors.black, bold = true}
l.style_identifier = l.style_nothing
-- Default styles.
l.style_default = style{fore = l.colors.white, back = l.colors.black}
l.style_line_number = l.style_default
l.style_bracelight = style{fore = l.colors.black, back = l.colors.white}
l.style_bracebad = style{fore = l.colors.red, bold = true}
l.style_controlchar = l.style_nothing
l.style_indentguide = l.style_nothing
l.style_calltip = l.style_default
|