diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-05-31 13:56:46 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-05-31 15:00:03 +0200 |
commit | c2f2d131119cdfa7b0ff5da4d7365033128da3b5 (patch) | |
tree | 548d6239544c1351ab87b384ca033bcd1e49b035 /src/plugins/texteditor/generichighlighter/specificrules.cpp | |
parent | 9960008f778fa9a0caec6a4229fca4f6e04258cd (diff) |
Generic highlighter: Refactored how format configuration is done.
Now the highlighter engine does not directly depend on TextEditor::FontSettings. This also makes things easier for unit testing.
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/specificrules.cpp')
-rw-r--r-- | src/plugins/texteditor/generichighlighter/specificrules.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/generichighlighter/specificrules.cpp b/src/plugins/texteditor/generichighlighter/specificrules.cpp index 6fe4269367..0dd00a3c9d 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) |