(self, idx, skip_ws=True)
Returns the next token relative to *idx*.

        If *skip_ws* is ``True`` (the default) whitespace tokens are ignored.
        ``None`` is returned if there's no next token.
Returns the next token relative to *idx*.
Returns the next token relative to * idx * .
def token_next(self, idx, skip_ws=True):
        """Returns the next token relative to *idx*.

        If *skip_ws* is ``True`` (the default) whitespace tokens are ignored.
        ``None`` is returned if there's no next token.
        """
        if idx is None:
            return None
        if not isinstance(idx, int):
            idx = self.token_index(idx)
        while idx < len(self.tokens) - 1:
            idx += 1
            if self.tokens[idx].is_whitespace() and skip_ws:
                continue
            return self.tokens[idx]
def token_next ( self , idx , skip_ws = True ) : if idx is None : return None if not isinstance ( idx , int ) : idx = self . token_index ( idx ) while idx < len ( self . tokens ) - 1 : idx += 1 if self . tokens [ idx ] . is_whitespace ( ) and skip_ws : continue return self . tokens [ idx ]