aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_zig.lua40
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",