Commit 22db6cd7 authored by Rhys Weatherley's avatar Rhys Weatherley
Browse files

Use correct GLSL language variant in code completer

parent a0c1b009
......@@ -606,7 +606,7 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
// parse the expression
GLSL::Engine engine;
GLSL::Parser parser(&engine, code, code.size(), GLSL::Lexer::Variant_All);
GLSL::Parser parser(&engine, code, code.size(), edit->languageVariant());
GLSL::ExpressionAST *expr = parser.parseExpression();
#if 0
......
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