lib/abbreviation-marker.js
function allowedForAutoActivation(model) {
	const rootNode = model.ast.children[0];
	// The very first node should start with alpha character
	// Skips falsy activations for something like `$foo` etc.
	return rootNode && /^[a-z]/i.test(rootNode.name);
}
function allowedForAutoActivation(model) {
	const rootNode = model.ast.children[0];
	// The very first node should start with alpha character
	// Skips falsy activations for something like `$foo` etc.
	return rootNode && /^[a-z]/i.test(rootNode.name);
}
function allowedForAutoActivation ( model ) { const rootNode = model . ast . children [ 0 ] ; // The very first node should start with alpha character // Skips falsy activations for something like `$foo` etc. return rootNode && / ^[a-z] / i . test ( rootNode . name ) ; }
Check if given abbreviation model is allowed for auto-activated abbreviation
marker. Used to reduce falsy activations
@param  {Object} model Parsed abbreviation model (see `createAbbreviationModel()`)
@return {Boolean}
Check if given abbreviation model is allowed for auto - activated abbreviation marker . Used to reduce falsy activations