Changed the QML/JS editor to treat .qs/.js files as JavaScript, and invoke the appropriate parser for it.

Reviewed-by: Christian Kamm
This commit is contained in:
Erik Verbruggen
2010-01-18 12:38:36 +01:00
committed by Tim Jenssen
parent 2dfe4f620c
commit 0f8126f62d
9 changed files with 84 additions and 35 deletions

View File

@@ -130,7 +130,7 @@ namespace QmlJSEditor {
_pos = pos;
_scopes.clear();
_currentSymbol = 0;
Node::accept(doc->program(), this);
Node::accept(doc->qmlProgram(), this);
return _scopes;
}