(self, data)
return start, end
Get from a docstring the next raise name indexes.
        In javadoc style it is after @raise.

        :param data: string to parse
        :returns: start and end indexes of found element else (-1, -1)
          or else (-2, -2) if try to use params style but no parameters were provided.
          Note: the end index is the index after the last name character
        :rtype: tuple
Get from a docstring the next raise name indexes.
        In javadoc style it is after @raise.
Get from a docstring the next raise name indexes . In javadoc style it is after @raise .
def get_raise_indexes(self, data):
        """Get from a docstring the next raise name indexes.
        In javadoc style it is after @raise.

        :param data: string to parse
        :returns: start and end indexes of found element else (-1, -1)
          or else (-2, -2) if try to use params style but no parameters were provided.
          Note: the end index is the index after the last name character
        :rtype: tuple

        """
        start, end = -1, -1
        stl_param = self.opt['raise'][self.style['in']]['name']
        if self.style['in'] in self.tagstyles + ['unknown']:
            idx_p = self.get_key_index(data, 'raise')
            if idx_p >= 0:
                idx_p += len(stl_param)
                m = re.match(RAISES_NAME_REGEX, data[idx_p:].strip())
                if m:
                    param = m.group(1)
                    start = idx_p + data[idx_p:].find(param)
                    end = start + len(param)

        if self.style['in'] in ['groups', 'unknown'] and (start, end) == (-1, -1):
            # search = '\s*(%s)' % '|'.join(self.groups['param'])
            # m = re.match(search, data.lower())
            # if m:
            #    key_param = m.group(1)
            pass

        return start, end
def get_raise_indexes ( self , data ) : start , end = - 1 , - 1 stl_param = self . opt [ 'raise' ] [ self . style [ 'in' ] ] [ 'name' ] if self . style [ 'in' ] in self . tagstyles + [ 'unknown' ] : idx_p = self . get_key_index ( data , 'raise' ) if idx_p >= 0 : idx_p += len ( stl_param ) m = re . match ( RAISES_NAME_REGEX , data [ idx_p : ] . strip ( ) ) if m : param = m . group ( 1 ) start = idx_p + data [ idx_p : ] . find ( param ) end = start + len ( param ) if self . style [ 'in' ] in [ 'groups' , 'unknown' ] and ( start , end ) == ( - 1 , - 1 ) : # search = '\s*(%s)' % '|'.join(self.groups['param']) # m = re.match(search, data.lower()) # if m: #    key_param = m.group(1) pass return start , end