def highlightBlock(self, text):
        if not self.dict:
            return

        text = unicode(text)

        format = Qt.QTextCharFormat()
        format.setUnderlineColor(QtCore.Qt.red)
        format.setUnderlineStyle(Qt.QTextCharFormat.DotLine)

        for word_object in re.finditer(self.WORDS, text):
            if not self.dict.check(word_object.group()):
                self.setFormat(word_object.start(),
                    word_object.start() - word_object.end(), format)
dataset/ETHPy150Open mariano/snakefire/snakefire/qtx.py/SpellHighlighter.highlightBlock/swapped operands of `-`