diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-05 17:02:33 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-05 17:02:33 +0800 |
commit | 88f01fcd1ac3404c59c2dd3ad4e266708731b994 (patch) | |
tree | 0924c43b8e60c84c3539a31b35a9b1ec8bb7aed1 /syntaxes | |
parent | 1a3ff586501cc6f8bd29f53664b399c1c976f269 (diff) | |
download | lua-language-server-88f01fcd1ac3404c59c2dd3ad4e266708731b994.zip |
遇到关键字后停止
Diffstat (limited to 'syntaxes')
-rw-r--r-- | syntaxes/lua.tmLanguage.json | 4 |
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" |