docs: def highlightBlock(self, block):
          """
          Reimplements the :meth:`AbstractHighlighter.highlightBlock` method.
  
          :param block: Text block.
          :type block: QString
          """
  
          self.highlight_text(block, 0, len(block))
          self.setCurrentBlockState(0)
  
          state = 1
          for rule in self.rules:
              if re.match("comment\.block\.[\w\.]*start", rule.name):
                  format = self.formats.get_format(rule.name) or self.formats.get_format("default")
                  if self.highlight_multiline_block(block, rule.pattern,
                                                    foundations.common.get_first_item([item for item in self.rules
                                                                                       if item.name == rule.name.replace(
                                                                "start", "end")]).pattern, state, format):
                      break
                  state += 1