From c552e26b2d85d2c120742f831178274a1d642dd6 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Wed, 1 Dec 2010 11:52:10 +1000 Subject: Recognize all keywords during autocompletion --- src/plugins/glsleditor/glslcodecompletion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1