summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-12-01 11:52:10 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-12-01 11:52:10 +1000
commitc552e26b2d85d2c120742f831178274a1d642dd6 (patch)
tree74cd376b90b9fc0259afe2e7c10fb4207fe66d52
parent16862432e3fa729169ac6f7b3e299661a3fe8b46 (diff)
downloadqt-creator-c552e26b2d85d2c120742f831178274a1d642dd6.tar.gz
Recognize all keywords during autocompletion
-rw-r--r--src/plugins/glsleditor/glslcodecompletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glslcodecompletion.cpp b/src/plugins/glsleditor/glslcodecompletion.cpp
index 387a9f5e6a..9ae1505918 100644
--- a/src/plugins/glsleditor/glslcodecompletion.cpp
+++ b/src/plugins/glsleditor/glslcodecompletion.cpp
@@ -631,7 +631,7 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
// parse the expression
GLSL::Engine engine;
- GLSL::Parser parser(&engine, code, code.size(), GLSL::Lexer::Variant_GLSL_Qt);
+ GLSL::Parser parser(&engine, code, code.size(), GLSL::Lexer::Variant_All);
GLSL::ExpressionAST *expr = parser.parseExpression();
#if 0