src/Luminous/Utils/SassParser.php
public function nextOf($tokenNames)
    {
        $i = $this->index+1;
        $len = count($this->tokens);
        while ($i < $len) {
            $tok = $this->tokens[$i][0];
            if (in_array($tok, $tokenNames)) {
                return $tok;
            }
            $i++;
        }
        return null;
    }
public function nextOf($tokenNames)
    {
        $i = $this->index+1;
        $len = count($this->tokens);
        while ($i < $len) {
            $tok = $this->tokens[$i][0];
            if (in_array($tok, $tokenNames)) {
                return $tok;
            }
            $i++;
        }
        return null;
    }
public function nextOf ( $ tokenNames ) { $ i = $ this -> index + 1 ; $ len = count ( $ this -> tokens ) ; while ( $ i < $ len ) { $ tok = $ this -> tokens [ $ i ] [ 0 ] ; if ( in_array ( $ tok , $ tokenNames ) ) { return $ tok ; } $ i ++ ; } return null ; }
Returns the first token which occurs out of the set of given tokens
Returns the first token which occurs out of the set of given tokens