function remove_preceding_whitespace(end, state) {
	let start = end;
	while (/\s/.test(state.code.original[start - 1])) start--;
	if (start < end) state.code.remove(start, end);
}
Walk backwards until we find a non-whitespace character
@param {number} end
@param {State} state