summaryrefslogtreecommitdiff
path: root/syntaxes/lua.tmLanguage.json
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-30 11:18:22 +0800
committersumneko <sumneko@hotmail.com>2019-05-30 11:18:22 +0800
commit19c5c8044f948b6b9759944511afba9dc5c18d75 (patch)
treef42bb1a1998771562a1d660e30acb3b3535b544f /syntaxes/lua.tmLanguage.json
parent9edc2fec3d060a8ef0b2fe230ffe5f91f37c7f2f (diff)
downloadlua-language-server-19c5c8044f948b6b9759944511afba9dc5c18d75.zip
改一下着色
Diffstat (limited to 'syntaxes/lua.tmLanguage.json')
-rw-r--r--syntaxes/lua.tmLanguage.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json
index cb395f03..b2ecc8eb 100644
--- a/syntaxes/lua.tmLanguage.json
+++ b/syntaxes/lua.tmLanguage.json
@@ -225,15 +225,16 @@
"name": "keyword.control.lua"
},
{
+ "match": "\\b(local)\\b(?:\\s*)*",
+ "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": "<([a-zA-Z_][a-zA-Z0-9_]*)>"
},
{
"match": "\\b(function)\\b",