Skip to content

Commit

Permalink
Merge pull request #17 from simonkrogmann/fix_spell_checker
Browse files Browse the repository at this point in the history
Fix words being split at special characters missing from list
  • Loading branch information
Bramas committed Jan 9, 2016
2 parents ddd6c3c + 6214c56 commit c658bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/syntaxhighlighter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit c658bca

Please sign in to comment.