diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-05 13:03:08 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-05 13:03:08 +0800 |
commit | 34c76f50668f21c953deb9fd8257739f19b633c3 (patch) | |
tree | c6923901e08f31b99cc64a14b6cdb298dfbf9448 /syntaxes/lua.tmLanguage.json | |
parent | 84ea80412cae1c922afc4b9cb74bf5369c04b87a (diff) | |
download | lua-language-server-34c76f50668f21c953deb9fd8257739f19b633c3.zip |
更新着色
Diffstat (limited to 'syntaxes/lua.tmLanguage.json')
-rw-r--r-- | syntaxes/lua.tmLanguage.json | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index 23b97d7f..9db25e14 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -12,19 +12,36 @@ "name": "keyword.control.lua" } }, - "end": "(?=(\\()(?:[^\\)]*)(\\)))", - "endCaptures": { - "1": { - "name": "punctuation.definition.parameters.begin.lua" - }, - "2": { - "name": "punctuation.definition.parameters.finish.lua" - } - }, + "end": "\\)", "name": "meta.function.lua", "patterns": [ { - "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*:)", + "begin": "(\\()", + "beginCaptures": { + "1": { + "name": "punctuation.definition.parameters.begin.lua" + } + }, + "end": "(?=\\))", + "endCaptures": { + "1": { + "name": "punctuation.definition.parameters.finish.lua" + } + }, + "name": "meta.parameter.lua", + "patterns": [ + { + "match": "[a-zA-Z_][a-zA-Z0-9_]*", + "name": "variable.parameter.function.lua" + }, + { + "match": ",", + "name": "punctuation.separator.arguments.lua" + } + ] + }, + { + "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b\\s*(?=:)", "name": "entity.name.class.lua" }, { |