diff options
author | lqdev <liquidekgaming@gmail.com> | 2021-06-23 13:10:05 +0200 |
---|---|---|
committer | lqdev <liquidekgaming@gmail.com> | 2021-06-23 13:10:05 +0200 |
commit | 57bf8448af84b6be45faffb47b19cc375c64d4e3 (patch) | |
tree | 34029ec86e9820d59e7d4316096a34f0b9d0789f /plugins/language_zig.lua | |
parent | 29fda54db57d2b253f02f077707c98d2cd73d3d3 (diff) | |
download | lite-xl-plugins-57bf8448af84b6be45faffb47b19cc375c64d4e3.tar.gz lite-xl-plugins-57bf8448af84b6be45faffb47b19cc375c64d4e3.zip |
style
Diffstat (limited to 'plugins/language_zig.lua')
-rw-r--r-- | plugins/language_zig.lua | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/language_zig.lua b/plugins/language_zig.lua index fdd4d1a..ed6f385 100644 --- a/plugins/language_zig.lua +++ b/plugins/language_zig.lua @@ -5,28 +5,28 @@ syntax.add { files = { "%.zig$" }, comment = "//", patterns = { - { pattern = "//.-\n", type = "comment" }, - { pattern = "\\\\.-\n", type = "string" }, - { pattern = { '"', '"', '\\' }, type = "string" }, - { pattern = { "'", "'", '\\' }, type = "string" }, - { pattern = "[iu][%d_]+", type = "keyword2" }, - { pattern = "0b[01_]+", type = "number" }, - { pattern = "0o[0-7_]+", type = "number" }, - { pattern = "0x[%x_]+", type = "number" }, + { pattern = "//.-\n", type = "comment" }, + { pattern = "\\\\.-\n", type = "string" }, + { pattern = { '"', '"', '\\' }, type = "string" }, + { pattern = { "'", "'", '\\' }, type = "string" }, + { pattern = "[iu][%d_]+", type = "keyword2" }, + { pattern = "0b[01_]+", type = "number" }, + { pattern = "0o[0-7_]+", type = "number" }, + { pattern = "0x[%x_]+", type = "number" }, { pattern = "0x[%x_]+%.[%x_]*[pP][-+]?%d+", type = "number" }, - { pattern = "0x[%x_]+%.[%x_]*", type = "number" }, - { pattern = "0x%.[%x_]+[pP][-+]?%d+", type = "number" }, - { pattern = "0x%.[%x_]+", type = "number" }, - { pattern = "0x[%x_]+[pP][-+]?%d+", type = "number" }, - { pattern = "0x[%x_]+", type = "number" }, + { pattern = "0x[%x_]+%.[%x_]*", type = "number" }, + { pattern = "0x%.[%x_]+[pP][-+]?%d+", type = "number" }, + { pattern = "0x%.[%x_]+", type = "number" }, + { pattern = "0x[%x_]+[pP][-+]?%d+", type = "number" }, + { pattern = "0x[%x_]+", type = "number" }, { pattern = "%d[%d_]*%.[%d_]*[eE][-+]?%d+", type = "number" }, - { pattern = "%d[%d_]*%.[%d_]*", type = "number" }, - { pattern = "%d[%d_]*", type = "number" }, - { pattern = "[%+%-=/%*%^%%<>!~|&%.%?]", type = "operator" }, - { pattern = "[%a_][%w_]*()%s*%(", type = {"function", "normal"} }, - { pattern = "[A-Z][%w_]*", type = "keyword2" }, - { pattern = "[%a_][%w_]*", type = "symbol" }, - { pattern = "@()[%a_][%w_]*", type = {"operator", "function"} }, + { pattern = "%d[%d_]*%.[%d_]*", type = "number" }, + { pattern = "%d[%d_]*", type = "number" }, + { pattern = "[%+%-=/%*%^%%<>!~|&%.%?]", type = "operator" }, + { pattern = "[%a_][%w_]*()%s*%(", type = {"function", "normal"} }, + { pattern = "[A-Z][%w_]*", type = "keyword2" }, + { pattern = "[%a_][%w_]*", type = "symbol" }, + { pattern = "@()[%a_][%w_]*", type = {"operator", "function"} }, }, symbols = { ["fn"] = "keyword", |