Fix copy&paste error

This commit is contained in:
Enrico Forestieri 2021-03-17 08:59:04 +01:00
parent 901356fd58
commit 968be3f209

View File

@ -137,7 +137,7 @@ void LaTeXHighlighter::highlightBlock(QString const & text)
int length = match.capturedEnd(1) - index; int length = match.capturedEnd(1) - index;
setFormat(index, length, mathFormat); setFormat(index, length, mathFormat);
match = exprMath.match(text, index + length); match = exprMath.match(text, index + length);
int index = match.capturedStart(1); index = match.capturedStart(1);
} }
// [ ] // [ ]
static const QRegularExpression exprStartDispMath("(\\\\\\[|" static const QRegularExpression exprStartDispMath("(\\\\\\[|"