summaryrefslogtreecommitdiff
path: root/syntaxes/lua.tmLanguage.json
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-30 10:45:00 +0800
committersumneko <sumneko@hotmail.com>2019-05-30 10:45:00 +0800
commit4032ae1860538d4486f0d6885cdcf555c13dfa3f (patch)
treea4c0964d9228828809411a6dd39ec62d44d47935 /syntaxes/lua.tmLanguage.json
parent050dcbe14a6e2d6ca267193119b016d1432d121b (diff)
downloadlua-language-server-4032ae1860538d4486f0d6885cdcf555c13dfa3f.zip
标签着色
Diffstat (limited to 'syntaxes/lua.tmLanguage.json')
-rw-r--r--syntaxes/lua.tmLanguage.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json
index a87c19fe..cb395f03 100644
--- a/syntaxes/lua.tmLanguage.json
+++ b/syntaxes/lua.tmLanguage.json
@@ -225,8 +225,15 @@
"name": "keyword.control.lua"
},
{
- "match": "\\b(local(\\s*\\*toclose)?)\\b",
- "name": "keyword.local.lua"
+ "captures": {
+ "1": {
+ "name": "keyword.local.lua"
+ },
+ "2": {
+ "name": "string.tag.lua"
+ }
+ },
+ "match": "\\b(local)\\b(?:\\s*<([a-zA-Z_][a-zA-Z0-9_]*)>)"
},
{
"match": "\\b(function)\\b",