src/vs/editor/standalone/common/monarch/monarchCompile.ts/arrayToHash
function arrayToHash(array: string[]): { [name: string]: true } {
	const result: any = {};
	for (const e of array) {
		result[e] = true;
	}
	return result;
}