49 void setColors(
const QHash<ThemeManager::ThemeToken, QColor> &colors);
61 QRegularExpression pattern;
62 QTextCharFormat format;
67 QTextCharFormat stringFormat_;
68 QTextCharFormat commentFormat_;
69 QRegularExpression singleLineComment_;
70 QHash<ThemeManager::ThemeToken, QColor> colors_;
73 QColor color(ThemeManager::ThemeToken token)
const;
76 bool highlightLongBlock(
const QString &text,
bool isComment,
bool continuingPrevious, qint32 eqCountFromState,
77 qint32 &nextStateEqCount);
79 qint32 findLongBlockStart(
const QString &text, qint32 from,
bool isComment, qint32 &eqCount,
80 qint32 &tokenLength)
const;
82 qint32 findLongBlockEnd(
const QString &text, qint32 from, qint32 eqCount)
const;
void setColors(const QHash< ThemeManager::ThemeToken, QColor > &colors)
Use colors instead of the live theme, then rehighlight.
Definition lua_syntax_highlighter.cpp:38