From 57bf8448af84b6be45faffb47b19cc375c64d4e3 Mon Sep 17 00:00:00 2001 From: lqdev Date: Wed, 23 Jun 2021 13:10:05 +0200 Subject: style --- plugins/language_zig.lua | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'plugins/language_zig.lua') 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", -- cgit v1.2.3