src/Luminous/Utils/SassParser.php
public function nextOfType($tokenName)
    {
        $i = $this->index+1;
        $len = count($this->tokens);
        while ($i < $len) {
            $tok = $this->tokens[$i][0];
            if ($tok === $tokenName) {
                return $i;
            }
            $i++;
        }
        return $len;
    }
public function nextOfType($tokenName)
    {
        $i = $this->index+1;
        $len = count($this->tokens);
        while ($i < $len) {
            $tok = $this->tokens[$i][0];
            if ($tok === $tokenName) {
                return $i;
            }
            $i++;
        }
        return $len;
    }
public function nextOfType ( $ tokenName ) { $ i = $ this -> index + 1 ; $ len = count ( $ this -> tokens ) ; while ( $ i < $ len ) { $ tok = $ this -> tokens [ $ i ] [ 0 ] ; if ( $ tok === $ tokenName ) { return $ i ; } $ i ++ ; } return $ len ; }
Returns the index of the next token with the given token name
Returns the index of the next token with the given token name