diff --git a/source/syntaxhighlighter.cpp b/source/syntaxhighlighter.cpp index f57b69c..100e5ae 100644 --- a/source/syntaxhighlighter.cpp +++ b/source/syntaxhighlighter.cpp @@ -1021,6 +1021,6 @@ void SyntaxHighlighter::highlightExpression(const QString &text, const QString & bool SyntaxHighlighter::isWordSeparator(QChar c) const { - return QString(c).contains(QRegExp(QString::fromUtf8("[^a-zâãäåàæçèéêëìíîïðñòóôõøùúûüýþÿıœ]"),Qt::CaseInsensitive)); + return QString(c).contains(QRegExp(QString::fromUtf8("[^\\w]"),Qt::CaseInsensitive)); }