GitSubmitHighlighter::GitSubmitHighlighter(QTextEdit * parent) : QSyntaxHighlighter(parent), m_commentFormat(commentFormat()), m_keywordPattern(QLatin1String("^\\w+:")), m_hashChar(QLatin1Char('#')) { QTC_CHECK(m_keywordPattern.isValid()); }
MercurialSubmitHighlighter::MercurialSubmitHighlighter(QTextEdit * parent) : QSyntaxHighlighter(parent), m_commentFormat(commentFormat()), m_keywordPattern(QLatin1String("^\\w+:")), m_hashChar(QLatin1Char('#')) { Q_ASSERT(m_keywordPattern.isValid()); }