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

syntax.add({
	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" },
	},
})
