
//#region src/utils/listSpecialChars.ts
const SPECIAL_CHARS = [
	"  ",
	"\\",
	"|",
	"(",
	")",
	"{",
	"}",
	"[",
	"]",
	"<",
	">",
	"\"",
	"=",
	"+",
	"*",
	"&",
	"#",
	"%",
	"$",
	"!",
	"?",
	":",
	";",
	"~"
];
const listSpecialChars = (text) => {
	const results = [];
	let lineIndex = 0;
	for (let i = 0; i < text.length; i++) {
		const currentChar = text[i];
		if (currentChar === "\n") {
			results.push({
				char: "\\",
				lineStart: lineIndex,
				charStart: i
			});
			lineIndex++;
			continue;
		}
		if (SPECIAL_CHARS.includes(currentChar)) results.push({
			char: currentChar,
			lineStart: lineIndex,
			charStart: i
		});
	}
	return results;
};

//#endregion
exports.listSpecialChars = listSpecialChars;
//# sourceMappingURL=listSpecialChars.cjs.map