docs: function fixBadRegex(grammar) {
  	const scopeResolution = grammar.repository['scope-resolution'];
  	if (scopeResolution) {
  		const match = scopeResolution.patterns[0].match;
  		if (match === '(?i)([a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)') {
  			scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A-Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)';
  			return;
  		}
  	}
  
  	throw new Error(`fixBadRegex callback couldn't patch the regex. It may be obsolete`);
  }