diff options
author | Halil <halildrk@gmail.com> | 2021-03-18 14:40:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 14:40:34 +0300 |
commit | f79245e9ab950f5ebb8f6f2208d8d2675f932f46 (patch) | |
tree | 0bbad154e756c7559060ffb4ff469649bfa6a1b5 /plugins/language_moon.lua | |
parent | 35c35caa5eb9b60064bbab52edde803b781e2e4a (diff) | |
download | lite-xl-plugins-f79245e9ab950f5ebb8f6f2208d8d2675f932f46.tar.gz lite-xl-plugins-f79245e9ab950f5ebb8f6f2208d8d2675f932f46.zip |
Remove needless keywords
Diffstat (limited to 'plugins/language_moon.lua')
-rw-r--r-- | plugins/language_moon.lua | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/language_moon.lua b/plugins/language_moon.lua index b98a421..4817743 100644 --- a/plugins/language_moon.lua +++ b/plugins/language_moon.lua @@ -12,24 +12,22 @@ syntax.add { { pattern = "-?0x%x+", type = "number" }, { pattern = "-?%d+[%d%.eE]*", type = "number" }, { pattern = "-?%.?%d+", type = "number" }, - { pattern = "<%a+>", type = "keyword2" }, - { pattern = "%.%.%.?", type = "operator" }, - { pattern = "[<>~=]=", type = "operator" }, - { pattern = "[%+%-=/%*%^%%#<>]", type = "operator" }, + { pattern = "%.%.%.?", type = "keyword2" }, + { pattern = "[<>~=]=", type = "keyword2" }, + { pattern = "[%+%-=/%*%^%%#<>]", type = "keyword2" }, { pattern = "[%a_][%w_]*%s*%f[(\"{]", type = "function" }, { pattern = "[%a_][%w_]*", type = "symbol" }, - { pattern = "::[%a_][%w_]*::", type = "function" }, { pattern = {"\\", "[%a_][%w_]*"}, type = "function" }, { pattern = {"%.", "[%a_][%w_]*"}, type = "function" }, { pattern = {"@", "[%a_][%w_]*"}, type = "keyword2" }, { pattern = "!", type = "keyword2" }, - { pattern = "(%p)", type = "keyword" }, + { pattern = "[%p]", type = "keyword" }, }, symbols = { ["if"] = "keyword", ["then"] = "keyword", ["else"] = "keyword", - ["when"] = "keyword2", + ["when"] = "keyword", ["elseif"] = "keyword", ["do"] = "keyword", ["->"] = "keyword", @@ -40,13 +38,12 @@ syntax.add { ["export"] = "keyword", ["unless"] = "keyword", ["return"] = "keyword", - ["local"] = "keyword", ["in"] = "keyword", ["not"] = "keyword", ["and"] = "keyword", ["or"] = "keyword", - ["goto"] = "keyword", ["import"] = "keyword", + ["as"] = "keyword", ["from"] = "keyword", ["class"] = "keyword", ["extends"] = "keyword", @@ -55,8 +52,10 @@ syntax.add { ["using"] = "keyword", ["super"] = "keyword2", ["self"] = "keyword2", + ["#"] = "keyword2", ["true"] = "literal", ["false"] = "literal", ["nil"] = "literal", }, } + |