ggdgsdbsdbbb / highlight / d.v
114 lines · 113 sloc · 1.53 KB · 704ec3895e0beeff87c7e0a8619aa5cbed4302bd
Raw
1module highlight
2
3fn init_d() Lang {
4 return Lang{
5 name: 'D'
6 lang_extensions: ['d']
7 line_comments: '//'
8 mline_comments: ['/*', '*/', '/+', '+/']
9 string_start: ['"', "'"]
10 color: '#ba595e'
11 keywords: [
12 'abstract',
13 'alias',
14 'align',
15 'asm',
16 'assert',
17 'auto',
18 'bool',
19 'break',
20 'byte',
21 'case',
22 'cast',
23 'catch',
24 'char',
25 'class',
26 'const',
27 'continue',
28 'dchar',
29 'debug',
30 'default',
31 'delegate',
32 'deprecated',
33 'do',
34 'double',
35 'else',
36 'enum',
37 'export',
38 'extern',
39 'false',
40 'final',
41 'finally',
42 'float',
43 'for',
44 'foreach',
45 'foreach_reverse',
46 'function',
47 'goto',
48 'if',
49 'immutable',
50 'import',
51 'in',
52 'inout',
53 'int',
54 'interface',
55 'invariant',
56 'is',
57 'lazy',
58 'long',
59 'macro',
60 'mixin',
61 'module',
62 'new',
63 'nothrow',
64 'null',
65 'out',
66 'override',
67 'package',
68 'pragma',
69 'private',
70 'protected',
71 'public',
72 'pure',
73 'real',
74 'ref',
75 'return',
76 'scope',
77 'shared',
78 'short',
79 'static',
80 'struct',
81 'super',
82 'switch',
83 'synchronized',
84 'template',
85 'this',
86 'throw',
87 'true',
88 'try',
89 'typeid',
90 'typeof',
91 'ubyte',
92 'uint',
93 'ulong',
94 'union',
95 'unittest',
96 'ushort',
97 'version',
98 'void',
99 'wchar',
100 'while',
101 'with',
102 '__FILE__',
103 '__FILE_FULL_PATH__',
104 '__MODULE__',
105 '__LINE__',
106 '__FUNCTION__',
107 '__PRETTY_FUNCTION__',
108 '__gshared',
109 '__traits',
110 '__vector',
111 '__parameters',
112 ]
113 }
114}
115