]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LaTeXHighlighter.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / LaTeXHighlighter.h
index 31afe323248b69eb1781a7b3d4da9248cd624b78..c780b9ffb7f1d841df71a75a4e030e4356ee5ab0 100644 (file)
@@ -25,7 +25,7 @@ namespace frontend {
 class LaTeXHighlighter : public QSyntaxHighlighter
 {
 public:
-       LaTeXHighlighter(QTextDocument * parent);
+       explicit LaTeXHighlighter(QTextDocument * parent, bool at_letter = false);
 
 protected:
        void highlightBlock(QString const & text);
@@ -34,6 +34,9 @@ private:
        QTextCharFormat commentFormat;
        QTextCharFormat keywordFormat;
        QTextCharFormat mathFormat;
+       QTextCharFormat warningFormat;
+       // is at a letter? (as in the preamble)
+       bool const at_letter_;
 };
 
 } // namespace frontend