Skip to content

Commit 963553c

Browse files
committed
update color
1 parent c89e235 commit 963553c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,19 +505,26 @@
505505
"end": "(?=\\n)",
506506
"patterns": [
507507
{
508-
"begin": "(\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b|\\[\\s*[0-9]*\\s*\\])(\\??)",
508+
"begin": "(\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b|(\\[))(\\??)",
509509
"beginCaptures": {
510-
"1": {
510+
"2": {
511511
"name": "entity.name.variable.lua"
512512
},
513-
"2": {
513+
"3": {
514514
"name": "keyword.operator.lua"
515515
}
516516
},
517517
"end": "(?=\\n)",
518518
"patterns": [
519+
{
520+
"include": "#string"
521+
},
519522
{
520523
"include": "#luadoc.type"
524+
},
525+
{
526+
"match": "\\]",
527+
"name": "keyword.operator.lua"
521528
}
522529
]
523530
}
@@ -711,6 +718,9 @@
711718
},
712719
{
713720
"include": "#luadoc.type"
721+
},
722+
{
723+
"include": "#string"
714724
}
715725
]
716726
},

0 commit comments

Comments
 (0)