Skip to content

Commit cce70e7

Browse files
committed
更新 @Version 的着色
1 parent b50dbbb commit cce70e7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,25 @@
536536
},
537537
"end": "(?=\\n)"
538538
},
539+
{
540+
"begin": "(?<=---)@version",
541+
"beginCaptures": {
542+
"0": {
543+
"name": "storage.type.annotation.lua"
544+
}
545+
},
546+
"end": "(?=\\n)",
547+
"patterns": [
548+
{
549+
"match": "\\b(5\\.1|5\\.2|5\\.3|5\\.4|JIT)\\b",
550+
"name": "support.class.lua"
551+
},
552+
{
553+
"match": ",|\\>|\\<",
554+
"name": "keyword.operator.lua"
555+
}
556+
]
557+
},
539558
{
540559
"begin": "(?<=---)\\|\\s*[\\>\\+]?",
541560
"beginCaptures": {

0 commit comments

Comments
 (0)