Commit 24be4b87 authored by Leandro Melo's avatar Leandro Melo
Browse files

Generic highlighter fix: Re-setting the length in string detect rule after captures replacement.

Case 1 from tst_HighlighterEngine::testDynamicContexts covers this case.
parent 5f342df1
......@@ -144,7 +144,10 @@ void StringDetectRule::setInsensitive(const QString &insensitive)
{ m_caseSensitivity = toCaseSensitivity(!toBool(insensitive)); }
void StringDetectRule::doReplaceExpressions(const QStringList &captures)
{ replaceByCaptures(&m_string, captures); }
replaceByCaptures(&m_string, captures);
m_length = m_string.length();
bool StringDetectRule::doMatchSucceed(const QString &text,
const int length,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment