]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LaTeXHighlighter.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / LaTeXHighlighter.cpp
index ed3dd45142a899c23d5d25294cb916f904eb867b..00f8064af9e081573b634513401140bd2a6cddd7 100644 (file)
@@ -104,10 +104,9 @@ void LaTeXHighlighter::highlightBlock(QString const & text)
                text.indexOf(exprComment, index + length);
                index = exprComment.pos(1);
        }
-       // <LyX Warning: ...> ... </LyX Warning>
-       QString opening = QRegExp::escape(qt_("<LyX Warning:"));
-       QString closing = QRegExp::escape(qt_("</LyX Warning>"));
-       QRegExp exprWarning(opening + "[^<]*" + closing);
+       // <LyX Warning: ...>
+       QString lyxwarn = qt_("LyX Warning: ");
+       QRegExp exprWarning("<" + lyxwarn + "[^<]*>");
        index = text.indexOf(exprWarning);
        while (index >= 0) {
                int length = exprWarning.matchedLength();