summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-26 16:28:37 +0800
committersumneko <sumneko@hotmail.com>2019-04-26 16:28:37 +0800
commit3702ece04522631c6e62a5ff99140e682b76cfca (patch)
tree4580d6f134a36681ca85ae2f10bc4fa314018ef4
parent2f30b8fe0a7b121edf0a8411538835ce5d00bcd8 (diff)
downloadlua-language-server-3702ece04522631c6e62a5ff99140e682b76cfca.zip
callĺ’Śclass
-rw-r--r--syntaxes/lua.tmLanguage.json10
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"
},
{