code: 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;
  	}
docs: gets the next token in the specified direction while matcher matches the current token