UNPKG

2.09 kBJavaScriptView Raw
1/*
2 * Color scheme
3 */
4
5module.exports = {
6 'GREY': '0;30',
7 'RED': '0;31',
8 'GREEN': '0;32',
9 'YELLOW': '0;33',
10 'BLUE': '0;34',
11 'MAGENTA': '0;35',
12 'CYAN': '0;36',
13 'BOLD': '0;1',
14 'UNDERLINE': '0;4',
15 'BOLDWHITE': '1;37',
16 'NIL': '0;0',
17
18 'line_number': 'GREY',
19
20 'keyword': 'BOLD', // like 'class', 'module', etc
21 'built_in': 'keyword', // like var, etc
22 'tag': 'keyword', // css tag
23 'class': 'keyword', // css class
24
25 'title': 'UNDERLINE', // tags, function names
26
27 'comment': 'CYAN',
28 'doctype': 'comment',
29 'pi': 'comment', // xml declaration
30 'preprocessor': 'comment', // C/C++ preprocessor directives
31 'horizontal_rule': 'comment', // markdown HR ---
32 'javadoc': 'comment', // double-star comments
33 'blockquote': 'comment', // markdown blockquote
34 'javadoctag': 'BLUE', // tags like @param
35
36 'string': 'GREEN',
37 'value': 'string', // html/json values
38 'json:value': 'NIL',
39 'code': 'string', // markdown code
40 'link_reference': 'string', // markdown link reference
41
42 'number': 'YELLOW',
43 'symbol': 'number', // ruby ':symbols
44 'hexcolor': 'number', // css hex holor
45 'link_url': 'number', // markdown link url
46
47 'function': 'BOLD', // css function, like rgba()
48 'strong': 'function', // markdown strong
49 'link_label': 'strong', // markdown links
50
51 'header': 'BOLDWHITE', // markdown header
52
53 'attribute': 'BLUE', // html/json attributes
54 'literal': 'attribute', // true, false, etc
55 'variable': 'attribute', // xml variable
56
57 'pseudo': 'GREY', // css pseudoclass :before
58 'attr_selector': 'pseudo', // css attr [type='number']
59
60 'params': 'NIL', // function parameters ()
61 'regexp': 'MAGENTA',
62
63 'subst': 'NIL', // ruby interpolation
64
65 'addition': 'GREEN', // diff +
66 'deletion': 'RED', // diff -
67 'chunk': 'BLUE', // diff @@ -1,119 +1,768 @@
68
69 'debug:tag': 'GREY'
70};