ggdgsdbsdbbb / highlight / lua.v
36 lines · 35 sloc · 496 bytes · 704ec3895e0beeff87c7e0a8619aa5cbed4302bd
Raw
1module highlight
2
3fn init_lua() Lang {
4 return Lang{
5 name: 'Lua'
6 lang_extensions: ['lua']
7 line_comments: '--'
8 mline_comments: ['--[[', ']]']
9 string_start: ['"', "'"]
10 color: '#00007d'
11 keywords: [
12 'and',
13 'break',
14 'do',
15 'else',
16 'elseif',
17 'end',
18 'false',
19 'for',
20 'function',
21 'goto',
22 'if',
23 'in',
24 'local',
25 'nil',
26 'not',
27 'or',
28 'repeat',
29 'return',
30 'then',
31 'true',
32 'until',
33 'while',
34 ]
35 }
36}
37