summaryrefslogtreecommitdiff
path: root/syntaxes
diff options
context:
space:
mode:
Diffstat (limited to 'syntaxes')
-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",