File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,16 @@ local self_var = token("self_ref", "@" * l.word + "self")
6666
6767local proper_ident = token (" proper_ident" , R (" AZ" ) * l .word )
6868
69+ local tbl_key = token (" tbl_key" , l .word * " :" + " :" * l .word )
70+
6971_rules = {
7072 { ' whitespace' , ws },
7173 { ' error' , err },
7274 { ' self' , self_var },
7375 { ' special' , special },
7476 { ' keyword' , keyword },
7577 { ' builtin' , builtin },
76- { ' identifier' , proper_ident + identifier },
78+ { ' identifier' , proper_ident + tbl_key + identifier },
7779 { ' comment' , comment },
7880 { ' number' , number },
7981 { ' string' , string },
@@ -92,6 +94,7 @@ _tokenstyles = {
9294 { ' fndef' , style_fndef },
9395 { ' symbol' , style_fndef },
9496 { ' special' , style_special },
97+ { ' tbl_key' , { fore = l .colors .red } },
9598 { l .OPERATOR , { fore = l .colors .red , bold = true } },
9699 { l .FUNCTION , { fore = l .colors .orange } },
97100}
You can’t perform that action at this time.
0 commit comments