]> git.lyx.org Git - features.git/commitdiff
Another tiny correction (not yet ideal)
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 18 Jul 2023 16:11:59 +0000 (18:11 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 18 Jul 2023 16:11:59 +0000 (18:11 +0200)
src/frontends/qt/LaTeXHighlighter.cpp

index f4ce08fbbeca50763233ef3f0bcd1cef516c1dd7..69ddff69d11001e50616373c9f6602782207ab89 100644 (file)
@@ -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