aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/generichighlighter/specificrules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/specificrules.cpp')
-rw-r--r--src/plugins/texteditor/generichighlighter/specificrules.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/generichighlighter/specificrules.cpp b/src/plugins/texteditor/generichighlighter/specificrules.cpp
index 6fe4269367e..0dd00a3c9db 100644
--- a/src/plugins/texteditor/generichighlighter/specificrules.cpp
+++ b/src/plugins/texteditor/generichighlighter/specificrules.cpp
@@ -185,8 +185,7 @@ bool RegExprRule::doMatchSucceed(const QString &text,
Q_UNUSED(length)
// This is not documented but a regular expression match is considered valid if it starts
- // at the current position and if the match length is not zero. Checked in Kate's source code
- // after some unexpected problems.
+ // at the current position and if the match length is not zero.
const int offset = progress->offset();
if (m_expression.indexIn(text, offset, QRegExp::CaretAtZero) == offset) {
if (m_expression.matchedLength() == 0)