ggdgsdbsdbbb / highlight / go.v
53 lines · 52 sloc · 728 bytes · 704ec3895e0beeff87c7e0a8619aa5cbed4302bd
Raw
1module highlight
2
3fn init_go() Lang {
4 return Lang{
5 name: 'Go'
6 lang_extensions: ['go']
7 line_comments: '//'
8 mline_comments: ['/*', '*/']
9 string_start: ['"', '`']
10 color: '#00add8'
11 keywords: [
12 'break',
13 'chan',
14 'const',
15 'continue',
16 'complex64',
17 'complex128',
18 'defer',
19 'else',
20 'func',
21 'for',
22 'fallthrough',
23 'go',
24 'goto',
25 'if',
26 'import',
27 'interface',
28 'iota',
29 'nil',
30 'package',
31 'range',
32 'return',
33 'switch',
34 'struct',
35 'type',
36 'bool',
37 'string',
38 'int',
39 'int8',
40 'int16',
41 'int8',
42 'int64',
43 'byte',
44 'uint8',
45 'uint16',
46 'uint32',
47 'uint64',
48 'rune',
49 'float32',
50 'float64',
51 ]
52 }
53}
54