diff options
author | rxi <rxi@users.noreply.github.com> | 2021-01-09 15:53:50 +0000 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2021-01-09 15:53:50 +0000 |
commit | 235be8ed31d8d3ccf83c18f27861c5d6eb677915 (patch) | |
tree | e4222eaced1aec42447c6613953e14cdd6a2890d /plugins | |
parent | eae34e5b7863bf5fa0db3bf133fb9b2b667266fd (diff) | |
download | lite-xl-plugins-235be8ed31d8d3ccf83c18f27861c5d6eb677915.tar.gz lite-xl-plugins-235be8ed31d8d3ccf83c18f27861c5d6eb677915.zip |
Updated language_odin plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_odin.lua | 56 |
1 files changed, 18 insertions, 38 deletions
diff --git a/plugins/language_odin.lua b/plugins/language_odin.lua index fb60a6c..c3413f2 100644 --- a/plugins/language_odin.lua +++ b/plugins/language_odin.lua @@ -4,23 +4,23 @@ syntax.add { files = "%.odin$", comment = "//", patterns = { - { pattern = "//.-\n", type = "comment" }, - { pattern = { "/%*", "%*/" }, type = "comment" }, - { pattern = { '"', '"', '\\' }, type = "string" }, - { pattern = { "'", "'", '\\' }, type = "string" }, - { pattern = { "`", "`" }, type = "string" }, - { pattern = "0b[01_]+", type = "number" }, - { pattern = "0o[0-7_]+", type = "number" }, - { pattern = "0[dz][%d_]+", type = "number" }, - { pattern = "0x[%da-fA-F_]+", type = "number" }, - { pattern = "-?%d+[%d%._e]*i?", type = "number" }, - { pattern = "-?%.?[%d_]+i?", type = "number" }, - { pattern = "[<>~=+-*/]=", type = "operator" }, - { pattern = "[::][:=]", type = "operator" }, - { pattern = "[%+%-=/%*%^%%<>!~|&:]", type = "operator" }, - { pattern = "%$[%a_][%w_]*", type = "operator" }, - { pattern = "[%a_][%w_]*%f[(]", type = "function" }, - { pattern = "[#@]?[%a_][%w_]*", type = "symbol" }, + { pattern = "//.-\n", type = "comment" }, + { pattern = { "/%*", "%*/" }, type = "comment" }, + { pattern = { '"', '"', '\\' }, type = "string" }, + { pattern = { "'", "'", '\\' }, type = "string" }, + { pattern = { "`", "`" }, type = "string" }, + { pattern = "0b[01_]+", type = "number" }, + { pattern = "0o[0-7_]+", type = "number" }, + { pattern = "0[dz][%d_]+", type = "number" }, + { pattern = "0x[%da-fA-F_]+", type = "number" }, + { pattern = "-?%d+[%d%._e]*i?", type = "number" }, + { pattern = "[<>~=+-*/]=", type = "operator" }, + { pattern = "[%+%-=/%*%^%%<>!~|&:]", type = "operator" }, + { pattern = "%$[%a_][%w_]*", type = "operator" }, + { pattern = "[%a_][%w_]*%f[(]", type = "function" }, + { pattern = "[#@][%a_][%w_]*", type = "keyword2" }, + { pattern = "[#@]%b()", type = "keyword2" }, + { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { -- Keywords @@ -36,7 +36,7 @@ syntax.add { ["switch"] = "keyword", ["case"] = "keyword", ["in"] = "keyword", - ["notin"] = "keyword", + ["not_in"] = "keyword", ["do"] = "keyword", ["break"] = "keyword", ["continue"] = "keyword", @@ -79,26 +79,6 @@ syntax.add { ["abs"] = "keyword2", ["clamp"] = "keyword2", ["assert"] = "keyword2", - ["#assert"] = "keyword2", - ["#location"] = "keyword2", - ["#caller_location"] = "keyword2", - ["#packed"] = "keyword2", - ["#raw_union"] = "keyword2", - ["#align"] = "keyword2", - ["#no_nil"] = "keyword2", - ["#complete"] = "keyword2", - ["#no_alias"] = "keyword2", - ["#align"] = "keyword2", - ["#load"] = "keyword2", - ["#location"] = "keyword2", - ["#file"] = "keyword2", - ["#line"] = "keyword2", - ["#procedure"] = "keyword2", - ["#defined"] = "keyword2", - ["#no_bounds_check"] = "keyword2", - ["#bounds_check"] = "keyword2", - ["#type"] = "keyword2", - ["@private"] = "keyword2", -- Types ["rawptr"] = "keyword2", ["typeid"] = "keyword2", |