diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-26 16:28:37 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-26 16:28:37 +0800 |
commit | 3702ece04522631c6e62a5ff99140e682b76cfca (patch) | |
tree | 4580d6f134a36681ca85ae2f10bc4fa314018ef4 | |
parent | 2f30b8fe0a7b121edf0a8411538835ce5d00bcd8 (diff) | |
download | lua-language-server-3702ece04522631c6e62a5ff99140e682b76cfca.zip |
callĺ’Śclass
-rw-r--r-- | syntaxes/lua.tmLanguage.json | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index f1bdf110..a8d9eabf 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -234,11 +234,15 @@ "name": "keyword.operator.lua" }, { - "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b", - "name": "variable.other.lua" + "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))", + "name": "entity.name.function.lua" }, { - "match": "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)", + "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*:)", + "name": "entity.name.class.lua" + }, + { + "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b", "name": "variable.other.lua" }, { |