lib/assets/resources.js
function(syntax) {
			var cacheKey = 'all-' + syntax;
			if (!cache[cacheKey]) {
				var stack = [], sectionKey = syntax;
				var memo = [];

				do {
					var section = this.getSection(sectionKey);
					if (!section)
						break;

					['snippets', 'abbreviations'].forEach(function(sectionName) {
						var stackItem = {};
						each(section[sectionName] || null, function(v, k) {
							stackItem[k] = {
								nk: normalizeName(k),
								value: v,
								parsedValue: parseItem(k, v, sectionName),
								type: sectionName
							};
						});

						stack.push(stackItem);
					});

					memo.push(sectionKey);
					sectionKey = section['extends'];
				} while (sectionKey && !~memo.indexOf(sectionKey));


				cache[cacheKey] = utils.extend.apply(utils, stack.reverse());
			}

			return cache[cacheKey];
		}
function(syntax) {
			var cacheKey = 'all-' + syntax;
			if (!cache[cacheKey]) {
				var stack = [], sectionKey = syntax;
				var memo = [];

				do {
					var section = this.getSection(sectionKey);
					if (!section)
						break;

					['snippets', 'abbreviations'].forEach(function(sectionName) {
						var stackItem = {};
						each(section[sectionName] || null, function(v, k) {
							stackItem[k] = {
								nk: normalizeName(k),
								value: v,
								parsedValue: parseItem(k, v, sectionName),
								type: sectionName
							};
						});

						stack.push(stackItem);
					});

					memo.push(sectionKey);
					sectionKey = section['extends'];
				} while (sectionKey && !~memo.indexOf(sectionKey));


				cache[cacheKey] = utils.extend.apply(utils, stack.reverse());
			}

			return cache[cacheKey];
		}
function ( syntax ) { var cacheKey = 'all-' + syntax ; if ( ! cache [ cacheKey ] ) { var stack = [ ] , sectionKey = syntax ; var memo = [ ] ; do { var section = this . getSection ( sectionKey ) ; if ( ! section ) break ; [ 'snippets' , 'abbreviations' ] . forEach ( function ( sectionName ) { var stackItem = { } ; each ( section [ sectionName ] || null , function ( v , k ) { stackItem [ k ] = { nk : normalizeName ( k ) , value : v , parsedValue : parseItem ( k , v , sectionName ) , type : sectionName } ; } ) ; stack . push ( stackItem ) ; } ) ; memo . push ( sectionKey ) ; sectionKey = section [ 'extends' ] ; } while ( sectionKey && ! ~ memo . indexOf ( sectionKey ) ) ; cache [ cacheKey ] = utils . extend . apply ( utils , stack . reverse ( ) ) ; } return cache [ cacheKey ] ; }
Returns plain dictionary of all available abbreviations and snippets
for specified syntax with respect of inheritance
@param {String} syntax
@returns {Object}
Returns plain dictionary of all available abbreviations and snippets for specified syntax with respect of inheritance