Commit 157efcbc authored by Jan Möbius's avatar Jan Möbius

Updated renderObject widget to highlight ifdefs.

parent 765e6a04
......@@ -116,7 +116,7 @@ void RenderObjectHighlighter::update() {
HighlightingRule rule;
// Define rule
rule.pattern = QRegExp("#define.*");
rule.pattern = QRegExp("(#define|#ifdef|#else|#endif|#ifndef).*");
rule.format = defineFormat_;
highlightingRules_.append(rule);
......
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