diff options
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", }, } + |