Fixed a bug where unicode characters were not included in the spell check regex
This commit is contained in:
@@ -185,6 +185,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
|
|||||||
# Build a QRegExp for each pattern and for the spell checker
|
# Build a QRegExp for each pattern and for the spell checker
|
||||||
self.rules = [(QRegularExpression(a),b) for (a,b) in self.hRules]
|
self.rules = [(QRegularExpression(a),b) for (a,b) in self.hRules]
|
||||||
self.spellRx = QRegularExpression(r"\b[^\s]+\b")
|
self.spellRx = QRegularExpression(r"\b[^\s]+\b")
|
||||||
|
self.spellRx.setPatternOptions(QRegularExpression.UseUnicodePropertiesOption)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user