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

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