Skip to content

Commit efa34c2

Browse files
committed
更新着色
1 parent 8f9c58b commit efa34c2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,15 @@
518518
}
519519
]
520520
},
521+
{
522+
"begin": "(?<=---)@deprecated",
523+
"beginCaptures": {
524+
"0": {
525+
"name": "storage.type.annotation.lua"
526+
}
527+
},
528+
"end": "(?=\\n)"
529+
},
521530
{
522531
"begin": "(?<=---)\\|\\s*\\>?",
523532
"beginCaptures": {
@@ -566,6 +575,10 @@
566575
"match": "(\\b([a-zA-Z_][a-zA-Z0-9_\\.]*)\\b)[ \\t]*",
567576
"name": "support.type.lua"
568577
},
578+
{
579+
"match": "(\\.\\.\\.)[ \\t]*",
580+
"name": "constant.language.lua"
581+
},
569582
{
570583
"include": "#string"
571584
},
@@ -589,6 +602,10 @@
589602
"match": "(\\b([a-zA-Z_][a-zA-Z0-9_\\.]*)\\b)[ \\t]*",
590603
"name": "support.type.lua"
591604
},
605+
{
606+
"match": "(\\.\\.\\.)[ \\t]*",
607+
"name": "constant.language.lua"
608+
},
592609
{
593610
"include": "#string"
594611
},

0 commit comments

Comments
 (0)