function getColorRange() {
	const { editor } = editorManager;
	const copyText = editor.getCopyText();

	if (copyText) {
		if (!isValidColor(copyText)) return null;
		return editor.selection.getRange();
	}

	const { Range } = ace.require("ace/range");
	let range;

	const cursorPos = editor.selection.getCursor();
	/**@type {string} */
	const line = editor.session.getLine(cursorPos.row);

	// match color in current line and get range
	const regex = colorRegex.anyGlobal;
	let match;

	while ((match = regex.exec(line))) {
		const start = match.index + match[1].length;
		const end = start + match[2].length;

		if (cursorPos.column >= start && cursorPos.column <= end) {
			range = new Range(cursorPos.row, start, cursorPos.row, end);
			break;
		}
	}

	return range;
}
Select the color at current line and cursor position
@returns {AceAjax.Range}