Commit 3ed88cda authored by David Schulz's avatar David Schulz

GenericHighlighter: Update supported kate styles

Change-Id: I016b25c56b31c615e208e86e690fc7408c9e5384
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent e8e46ab5
......@@ -109,6 +109,11 @@ static TextStyle styleForFormat(int format)
case Highlighter::Others: return C_TEXT;
case Highlighter::Identifier: return C_LOCAL;
case Highlighter::Documentation: return C_DOXYGEN_COMMENT;
case Highlighter::ControlFlow: return C_KEYWORD;
case Highlighter::Preprocessor: return C_PREPROCESSOR;
case Highlighter::VerbatimString: return C_STRING;
case Highlighter::SpecialString: return C_STRING;
case Highlighter::Constant: return C_KEYWORD;
case Highlighter::TextFormatIdCount:
QTC_CHECK(false); // should never get here
return C_TEXT;
......@@ -168,6 +173,11 @@ KateFormatMap::KateFormatMap()
m_ids.insert(QLatin1String("dsOthers"), Highlighter::Others);
m_ids.insert(QLatin1String("dsIdentifier"), Highlighter::Identifier);
m_ids.insert(QLatin1String("dsDocumentation"), Highlighter::Documentation);
m_ids.insert(QLatin1String("dsControlFlow"), Highlighter::ControlFlow);
m_ids.insert(QLatin1String("dsPreprocessor"), Highlighter::Preprocessor);
m_ids.insert(QLatin1String("dsVerbatimString"), Highlighter::VerbatimString);
m_ids.insert(QLatin1String("dsSpecialString"), Highlighter::SpecialString);
m_ids.insert(QLatin1String("dsConstant"), Highlighter::Constant);
}
Q_GLOBAL_STATIC(KateFormatMap, kateFormatMap)
......
......@@ -91,6 +91,11 @@ public:
Others,
Identifier,
Documentation,
ControlFlow,
Preprocessor,
VerbatimString,
SpecialString,
Constant,
TextFormatIdCount
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment