diff --git a/src/plugins/glsleditor/glslhighlighter.cpp b/src/plugins/glsleditor/glslhighlighter.cpp index c54bd5b65a7..122bb2e7ce5 100644 --- a/src/plugins/glsleditor/glslhighlighter.cpp +++ b/src/plugins/glsleditor/glslhighlighter.cpp @@ -367,15 +367,15 @@ void Highlighter::highlightBlock(const QString &text) const GLSL::Token &tk = tokens.at(i); if (tk.is(GLSL::Parser::T_NUMBER)) { - setFormat(tk.position, tk.length, formatForCategory(GLSLNumberFormat); + setFormat(tk.position, tk.length, formatForCategory(GLSLNumberFormat)); } else if (tk.is(GLSL::Parser::T_COMMENT)) { setFormat(tk.position, tk.length, Qt::darkGreen); // ### FIXME: formatForCategory(GLSLCommentFormat); } else if (tk.is(GLSL::Parser::T_IDENTIFIER)) { int kind = lex.findKeyword(data.constData() + tk.position, tk.length); if (kind == GLSL::Parser::T_RESERVED) - setFormat(tk.position, tk.length, formatForCategory(GLSLReservedKeyword); + setFormat(tk.position, tk.length, formatForCategory(GLSLReservedKeyword)); else if (kind != GLSL::Parser::T_IDENTIFIER) - setFormat(tk.position, tk.length, formatForCategory(GLSLKeywordFormat); + setFormat(tk.position, tk.length, formatForCategory(GLSLKeywordFormat)); } else if (tk.is(GLSL::Parser::T_LEFT_PAREN) || tk.is(GLSL::Parser::T_LEFT_BRACE) || tk.is(GLSL::Parser::T_LEFT_BRACKET)) { const QChar c = text.at(tk.begin()); parentheses.append(Parenthesis(Parenthesis::Opened, c, tk.begin()));