def highlightSpellcheck(self, text):
        for word_object in re.finditer(self.WORDS, str(text)):
            if not word_object.group():
                # don't bother with empty words
                continue
            if self.speller and not self.speller.check(word_object.group()):
                current_format = self.format(word_object.start())
                current_format.setUnderlineColor(Qt.red)
                current_format.setUnderlineStyle(QTextCharFormat.SpellCheckUnderline)
                self.setFormat(word_object.start(),
                    word_object.start() - word_object.end(), current_format)
dataset/ETHPy150Open ShadowKyogre/mikidown/mikidown/highlighter.py/MikiHighlighter.highlightSpellcheck/swapped operands of `-`