code: function getSyntax(editor) {
  	const scope = editor.getRootScopeDescriptor().scopes[0];
  	let m;
  
  	// check for HTML-like document
  	if (m = scope.match(/text\.(html|xml)\b/)) {
  		return m[1];
  	}
  
  	// check for stylesheet document
  	if (m = scope.match(/source\.css(?:\.(\w+))?\b/)) {
  		return m[1] || 'css';
  	}
  
  	return null;
  }
docs: Returns parser-supported syntax of given editor (like 'html', 'css' etc.).
  Returns `null` if editor’s syntax is unsupported
  @param  {TextEditor} editor
  @return {String}