import { c as e, o as t } from "../../dist-DgSmYkuV.js";
//#region src/editors/languages/yaral.ts
var n = [
	"rule",
	"meta",
	"events",
	"event",
	"match",
	"outcome",
	"condition",
	"options",
	"strings",
	"import",
	"private",
	"global"
], r = [
	"and",
	"or",
	"not",
	"of",
	"them",
	"any",
	"all",
	"within",
	"before",
	"after",
	"over"
], i = e.define({ token(e) {
	if (e.eatSpace()) return null;
	if (e.match(/\/\/.*$/) !== null || e.match(/\/\*.*?\*\//) !== null) return "comment";
	if (e.match(/"(?:[^"\\]|\\.)*"/) !== null) return "string";
	if (e.match(/\d+(\.\d+)?/) !== null) return "number";
	if (e.match(/[A-Za-z_][\w.]*/) !== null) {
		let t = e.current().toLowerCase();
		return n.includes(t) ? "keyword" : r.includes(t) ? "operator" : "variableName";
	}
	return e.match(/==|!=|<=|>=|[<>|=]/) === null ? (e.next(), null) : "operator";
} });
function a() {
	return new t(i);
}
var o = [...n.map((e) => ({
	label: e,
	type: "keyword"
})), ...r.map((e) => ({
	label: e,
	type: "keyword"
}))];
//#endregion
export { a as yaral, o as yaralCompletions, i as yaralLanguage };

//# sourceMappingURL=yaral.js.map