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

format.register({
	name = "Comma-Separated Values (CSV)",
	shortname = "CSV",
	author = "liqube",
	extensions = { "csv" },

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