Skip to content
Snippets Groups Projects
Commit 22db6cd7 authored by Rhys Weatherley's avatar Rhys Weatherley
Browse files

Use correct GLSL language variant in code completer

parent a0c1b009
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment