-- lx-public:0

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

syntax.add({
	name = "Liqube TabTree",
	shortname = "TT",
	extensions = { "tt" },
	comment = ";",
	force_header_check = true,

	patterns = {
		{ pattern = "%s*;.-\n", type = "comment", line_start = true },
		{ pattern = "@[%a_][%w_%-]*", type = "keyword" },
		{ pattern = "%f[%S]%d+:%s*[^#\n]+", type = "string" },
		{ pattern = "-?%d+%.?%d*", type = "number" },
		{ pattern = "#", type = "label" },
		{ pattern = "[%a_][%w_%-]*", type = "symbol" },
		{ pattern = "[:]", type = "operator" },
		{ pattern = "%s*([%d+])(:)%s*(.-)\n", type = { "number", "operator", "string" } },
	},
})
