diff options
-rw-r--r-- | syntaxes/lua.tmLanguage.json | 11 |
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", |