[LyX/master] Another tiny correction (not yet ideal)
Juergen Spitzmueller
spitz at lyx.org
Tue Jul 18 14:59:00 UTC 2023
commit 649cb309638734db324be8d2fa8fb06073ddd136
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Tue Jul 18 18:11:59 2023 +0200
Another tiny correction (not yet ideal)
---
src/frontends/qt/LaTeXHighlighter.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/LaTeXHighlighter.cpp b/src/frontends/qt/LaTeXHighlighter.cpp
index f4ce08f..69ddff6 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
More information about the lyx-cvs
mailing list