-- lx format
local format = require("core.format")

format.register({
	name = "Log File",
	shortname = "Log",
	extensions = { "log" },

	patterns = {
		{ pattern = "-?%.?%d+f?", type = "number" }, -- numbers
		{ pattern = "[,;|%[%]%(%)%{%}]", type = "operator" }, -- operators
		{ pattern = { '"', '"', "\\" }, type = "string", delim_type = "operator" }, -- strings
		{ pattern = { "'", "'", "\\" }, type = "string", delim_type = "operator" }, -- strings
	},

	symbols = {
		_expansion_flags = "rlu",
		["Error"] = "error",
		["Failed"] = "error",
		["Success"] = "success",
		["Succeeded"] = "success",
		["Debug"] = { "warning", "rluc" },
	},
})
