QmlJSEditor: Prevent an infinite parsing loop with invalid qml/js files.

Reviewed-by: Erik Verbruggen
(cherry picked from commit 9220929375)
This commit is contained in:
Christian Kamm
2010-04-16 11:25:56 +02:00
committed by con
parent f39130b56d
commit a3f2f16d5c

View File

@@ -1364,6 +1364,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
if (! doc) {
snapshot = source.snapshot;
doc = snapshot.documentFromSource(source.code, source.fileName);
doc->setDocumentRevision(source.revision);
doc->parse();
}