Commit 141de067 authored by Jan Möbius's avatar Jan Möbius

More highlighting


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16277 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6d082bc0
......@@ -96,7 +96,7 @@ void RenderObjectHighlighter::init() {
typeFormat_.setFontWeight(QFont::Bold);
// Types
typePatterns_ << "in" << "out" << "mat3" << "mat4" << "vec2" << "vec3" << "vec4" << "float" << "double" <<"uniform" ;
typePatterns_ << "in" << "out" << "mat3" << "mat4" << "vec2" << "vec3" << "vec4" << "float" << "double" <<"uniform" << "layout" ;
update();
}
......@@ -112,6 +112,11 @@ void RenderObjectHighlighter::update() {
rule.format = defineFormat_;
highlightingRules_.append(rule);
// version rule
rule.pattern = QRegExp("#version.*");
rule.format = defineFormat_;
highlightingRules_.append(rule);
// Rule for single line comments
rule.pattern = QRegExp("//[^\n]*");
rule.format = singleLineCommentFormat_;
......
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