summaryrefslogtreecommitdiff
path: root/syntaxes/lua.tmLanguage.json
diff options
context:
space:
mode:
Diffstat (limited to 'syntaxes/lua.tmLanguage.json')
-rw-r--r--syntaxes/lua.tmLanguage.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json
index 9db25e14..d8353c1c 100644
--- a/syntaxes/lua.tmLanguage.json
+++ b/syntaxes/lua.tmLanguage.json
@@ -12,7 +12,7 @@
"name": "keyword.control.lua"
}
},
- "end": "\\)",
+ "end": "(?=\\)|\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in|local|function)\\b)",
"name": "meta.function.lua",
"patterns": [
{
@@ -22,7 +22,7 @@
"name": "punctuation.definition.parameters.begin.lua"
}
},
- "end": "(?=\\))",
+ "end": "\\)",
"endCaptures": {
"1": {
"name": "punctuation.definition.parameters.finish.lua"