ggdgsdbsdbbb / highlight / c.v
59 lines · 58 sloc · 804 bytes · 704ec3895e0beeff87c7e0a8619aa5cbed4302bd
Raw
1module highlight
2
3fn init_c() Lang {
4 return Lang{
5 name: 'C'
6 lang_extensions: ['c']
7 line_comments: '//'
8 mline_comments: ['/*', '*/']
9 string_start: ['"', "'"]
10 color: '#555555'
11 keywords: [
12 'auto',
13 'double',
14 'int',
15 'struct',
16 'break',
17 'else',
18 'long',
19 'switch',
20 'case',
21 'enum',
22 'register',
23 'typedef',
24 'char',
25 'extern',
26 'return',
27 'union',
28 'const',
29 'float',
30 'short',
31 'unsigned',
32 'continue',
33 'for',
34 'signed',
35 'void',
36 'default',
37 'goto',
38 'sizeof',
39 'volatile',
40 'do',
41 'if',
42 'static',
43 'while',
44 '#if',
45 '#else',
46 '#elif',
47 '#endif',
48 '#define',
49 '#undef',
50 '#warning',
51 '#error',
52 '#line',
53 '#pragma',
54 '#ifdef',
55 '#ifndef',
56 '#include',
57 ]
58 }
59}
60