-- lx format

-- Lightweight plain text token rules
-- This file is responsible for basic highlighting like numbers and strings
-- in plain text files only. Without it plain text is truly plain.

local format = require("core.format")
local patterns = require("core.format.patterns")

format.register({
	name = "Plain Text",
	shortname = "Plain Text",
	author = "liqube",

	patterns = {
		-- Keep basic number highlighting in plain text docs
		patterns.number_token(),

		-- Keep quoted spans readable in prose and notes
		patterns.double_quoted_string(),
		patterns.single_quoted_string(),
	},
	symbols = {},
})
