docs/scripts/sunlight.js
function getNextWhile(tokens, index, direction, matcher) {
		var count = 1, 
			token;
		
		direction = direction || 1;
		while (token = tokens[index + (direction * count++)]) {
			if (!matcher(token)) {
				return token;
			}
		}
		
		return undefined;
	}
function getNextWhile(tokens, index, direction, matcher) {
		var count = 1, 
			token;
		
		direction = direction || 1;
		while (token = tokens[index + (direction * count++)]) {
			if (!matcher(token)) {
				return token;
			}
		}
		
		return undefined;
	}
function getNextWhile ( tokens , index , direction , matcher ) { var count = 1 , token ; direction = direction || 1 ; while ( token = tokens [ index + ( direction * count ++ ) ] ) { if ( ! matcher ( token ) ) { return token ; } } return undefined ; }
gets the next token in the specified direction while matcher matches the current token
gets the next token in the specified direction while matcher matches the current token