mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Trivial clean-up
This commit is contained in:
parent
cb0a4c6639
commit
76d0c6759f
@ -20,8 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
|
||||
LaTeXHighlighter::LaTeXHighlighter(QTextDocument * parent,
|
||||
bool const at_letter)
|
||||
LaTeXHighlighter::LaTeXHighlighter(QTextDocument * parent, bool at_letter)
|
||||
: QSyntaxHighlighter(parent), at_letter_(at_letter)
|
||||
{
|
||||
auto blend = [](QColor color1, QColor color2) {
|
||||
|
@ -25,8 +25,7 @@ namespace frontend {
|
||||
class LaTeXHighlighter : public QSyntaxHighlighter
|
||||
{
|
||||
public:
|
||||
explicit LaTeXHighlighter(QTextDocument * parent,
|
||||
bool const at_letter = false);
|
||||
explicit LaTeXHighlighter(QTextDocument * parent, bool at_letter = false);
|
||||
|
||||
protected:
|
||||
void highlightBlock(QString const & text);
|
||||
@ -36,7 +35,7 @@ private:
|
||||
QTextCharFormat keywordFormat;
|
||||
QTextCharFormat mathFormat;
|
||||
QTextCharFormat warningFormat;
|
||||
// is at a letter (as in the preamble)
|
||||
// is at a letter? (as in the preamble)
|
||||
bool const at_letter_;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user