Merge pull request #428 from vkbo/issue_427

Issue #427: Spell check highlighting and forward slash
This commit is contained in:
Veronica K. Berglyd Olsen
2020-08-22 12:40:37 +02:00
committed by GitHub
+1 -1
View File
@@ -198,7 +198,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
# Build a QRegExp for spell checker
# Include additional characters that the highlighter should
# consider to be word separators
wordSep = r"_\+"
wordSep = r"_\+/"
wordSep += nwUnicode.U_ENDASH
wordSep += nwUnicode.U_EMDASH
self.spellRx = QRegularExpression(r"\b[^\s"+wordSep+r"]+\b")