original_docstring: Remain in this state until 'end' is seen.
docstring: Remain in this state until 'end' is seen.
docstring_tokens: Remain in this state until ' end ' is seen .
code: def restart_match_span(self, s,
          delegate, end, exclude_match, kind,
          no_escape, no_line_break, no_word_break
      ):
          """Remain in this state until 'end' is seen."""
          self.matcher_name = 'restart:' + self.matcher_name.replace('restart:', '')
          i = 0
          j = self.match_span_helper(s, i, end, no_escape, no_line_break, no_word_break)
          if j == -1:
              j2 = len(s) + 1
          elif j > len(s):
              j2 = j
          else:
              j2 = j + len(end)
          if delegate:
              self.colorRangeWithTag(s, i, j, kind,
                  delegate=delegate, exclude_match=exclude_match)
              self.colorRangeWithTag(s, j, j2, kind,
                  delegate=None, exclude_match=exclude_match)
          else:  # avoid having to merge ranges in addTagsToList.
              self.colorRangeWithTag(s, i, j2, kind,
                  delegate=None, exclude_match=exclude_match)
          j = j2
          self.trace_match(kind, s, i, j)
          if j > len(s):
  
              def span(s):
                  return self.restart_match_span(s,
                      # Positional args, in alpha order
                      delegate, end, exclude_match, kind,
                      no_escape, no_line_break, no_word_break)
  
              self.setRestart(span,
                  # These must be keywords args.
                  delegate=delegate, end=end, kind=kind,
                  no_escape=no_escape,
                  no_line_break=no_line_break,
                  no_word_break=no_word_break)
          else:
              self.clearState()
          return j  # Return the new i, *not* the length of the match.
code_tokens: def restart_match_span ( self , s , delegate , end , exclude_match , kind , no_escape , no_line_break , no_word_break ) : self . matcher_name = 'restart:' + self . matcher_name . replace ( 'restart:' , '' ) i = 0 j = self . match_span_helper ( s , i , end , no_escape , no_line_break , no_word_break ) if j == - 1 : j2 = len ( s ) + 1 elif j > len ( s ) : j2 = j else : j2 = j + len ( end ) if delegate : self . colorRangeWithTag ( s , i , j , kind , delegate = delegate , exclude_match = exclude_match ) self . colorRangeWithTag ( s , j , j2 , kind , delegate = None , exclude_match = exclude_match ) else : self . colorRangeWithTag ( s , i , j2 , kind , delegate = None , exclude_match = exclude_match ) j = j2 self . trace_match ( kind , s , i , j ) if j > len ( s ) : def span ( s ) : return self . restart_match_span ( s , delegate , end , exclude_match , kind , no_escape , no_line_break , no_word_break ) self . setRestart ( span , delegate = delegate , end = end , kind = kind , no_escape = no_escape , no_line_break = no_line_break , no_word_break = no_word_break ) else : self . clearState ( ) return j
short_docstring: Remain in this state until 'end' is seen.
short_docstring_tokens: Remain in this state until ' end ' is seen .
comment: """Remain in this state until 'end' is seen."""$SEP$# avoid having to merge ranges in addTagsToList.$SEP$# Positional args, in alpha order$SEP$# These must be keywords args.$SEP$# Return the new i, *not* the length of the match.