From: Juergen Spitzmueller Date: Tue, 18 Jul 2023 16:11:59 +0000 (+0200) Subject: Another tiny correction (not yet ideal) X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=649cb309638734db324be8d2fa8fb06073ddd136;p=features.git Another tiny correction (not yet ideal) --- diff --git a/src/frontends/qt/LaTeXHighlighter.cpp b/src/frontends/qt/LaTeXHighlighter.cpp index f4ce08fbbe..69ddff69d1 100644 --- a/src/frontends/qt/LaTeXHighlighter.cpp +++ b/src/frontends/qt/LaTeXHighlighter.cpp @@ -50,7 +50,7 @@ void LaTeXHighlighter::highlightBlock(QString const & text) if (keyval_) { // Highlight key-val options. Used in some option widgets. // 1. The keys. Might or might not have values - static QRegularExpression exprKeyvalkey("[^=,{]+"); + static QRegularExpression exprKeyvalkey("[^=,}]+"); // 2. These are grouped values such as "key1={val,val},key2=val" static QRegularExpression exprKeyvalgval("[^=,{]+{[^}]+}"); // 3. And normal values if we don't find grouped ones