summaryrefslogtreecommitdiff
path: root/syntaxes/lua.tmLanguage.json
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-05 17:02:33 +0800
committersumneko <sumneko@hotmail.com>2019-05-05 17:02:33 +0800
commit88f01fcd1ac3404c59c2dd3ad4e266708731b994 (patch)
tree0924c43b8e60c84c3539a31b35a9b1ec8bb7aed1 /syntaxes/lua.tmLanguage.json
parent1a3ff586501cc6f8bd29f53664b399c1c976f269 (diff)
downloadlua-language-server-88f01fcd1ac3404c59c2dd3ad4e266708731b994.zip
遇到关键字后停止
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"