-- lx syntax

-- 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 syntax = require("core.syntax")
local patterns = require("core.syntax.patterns")

syntax.add({
	name = "Plain Text",
	shortname = "Plain Text",

	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 = {},
})
