File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ fn init_langs() []Lang {
41
41
langs_ << init_c ()
42
42
langs_ << init_v ()
43
43
langs_ << init_js ()
44
+ langs_ << init_lua ()
44
45
langs_ << init_go ()
45
46
langs_ << init_cpp ()
46
47
langs_ << init_d ()
Original file line number Diff line number Diff line change
1
+ module highlight
2
+
3
+ fn 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
+ }
You can’t perform that action at this time.
0 commit comments