docs: def perform_extended_selection(self, event=None):
          """
          Performs extended word selection.
          :param event: QMouseEvent
          """
          TextHelper(self.editor).select_extended_word(
              continuation_chars=self.continuation_characters)
          if event:
              event.accept()