forked from qt-creator/qt-creator
DocumentContentCompletion: Work with non-ASCII words
Fixes: QTCREATORBUG-26165 Change-Id: I9a72d36cf64accc32f71dfd5627302960558c69c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
8259df00d0
commit
d979bd8da9
@@ -86,7 +86,7 @@ DocumentContentCompletionProcessor::~DocumentContentCompletionProcessor()
|
||||
static void createProposal(QFutureInterface<QStringList> &future, const QString &text,
|
||||
const QString &wordUnderCursor)
|
||||
{
|
||||
const QRegularExpression wordRE("([a-zA-Z_][a-zA-Z0-9_]{2,})");
|
||||
const QRegularExpression wordRE("([\\p{L}_][\\p{L}0-9_]{2,})");
|
||||
|
||||
QSet<QString> words;
|
||||
QRegularExpressionMatchIterator it = wordRE.globalMatch(text);
|
||||
|
Reference in New Issue
Block a user