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

format.register({
	name = "Library Definition File",
	shortname = "DEF",
	author = "liqube",
	created = "2026-02-20",
	extensions = "def",
	comment = ";",

	patterns = {
		{ pattern = "%s*;.-\n$", type = "comment" },
		{ pattern = "@%d+", type = "number" }, -- Ordinals
		{ pattern = "%=", type = "operator" },
	},

	symbols = {
		["LIBRARY"] = "function",
		["DESCRIPTION"] = "function",
		["EXPORTS"] = "function",
	},
})
