lib/autocomplete/abbreviation.js
function getSnippetsCompletions(editor, prefix) {
	const syntax = detectSyntax(editor);
	if (isStylesheet(syntax)) {
		return getStylesheetSnippetsCompletions(editor, prefix);
	} else if (syntax) {
		return getMarkupSnippetsCompletions(editor, prefix);
	}

	return [];
}
function getSnippetsCompletions(editor, prefix) {
	const syntax = detectSyntax(editor);
	if (isStylesheet(syntax)) {
		return getStylesheetSnippetsCompletions(editor, prefix);
	} else if (syntax) {
		return getMarkupSnippetsCompletions(editor, prefix);
	}

	return [];
}
function getSnippetsCompletions ( editor , prefix ) { const syntax = detectSyntax ( editor ) ; if ( isStylesheet ( syntax ) ) { return getStylesheetSnippetsCompletions ( editor , prefix ) ; } else if ( syntax ) { return getMarkupSnippetsCompletions ( editor , prefix ) ; } return [ ] ; }
Returns snippets completions for given editor.
@param  {TextEditor} editor
@param  {String} prefix
@return {String[]}
Returns snippets completions for given editor .