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

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