From 7e4ef22cbdf7624d1e85bd8d185d497737684f99 Mon Sep 17 00:00:00 2001
From: Rhys Weatherley <rhys.weatherley@nokia.com>
Date: Wed, 17 Nov 2010 10:53:32 +1000
Subject: [PATCH] Add extra variant flags for GLSL keywords

---
 src/plugins/glsleditor/glsleditor.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp
index aa64cab5cc0..124f2d4a6a9 100644
--- a/src/plugins/glsleditor/glsleditor.cpp
+++ b/src/plugins/glsleditor/glsleditor.cpp
@@ -246,7 +246,10 @@ void GLSLTextEditor::updateDocumentNow()
 {
     m_updateDocumentTimer->stop();
 
-    const int variant = Lexer::Variant_GLSL_Qt; // ### hardcoded
+    const int variant = Lexer::Variant_GLSL_Qt | // ### hardcoded
+                        Lexer::Variant_GLSL_ES_100 |
+                        Lexer::Variant_VertexShader |
+                        Lexer::Variant_FragmentShader;
     const QString contents = toPlainText(); // get the code from the editor
     const QByteArray preprocessedCode = contents.toLatin1(); // ### use the QtCreator C++ preprocessor.
 
-- 
GitLab