From 0f8126f62dbbe35f297c956b964940d73688237c Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Mon, 18 Jan 2010 12:38:36 +0100 Subject: Changed the QML/JS editor to treat .qs/.js files as JavaScript, and invoke the appropriate parser for it. Reviewed-by: Christian Kamm --- src/plugins/qmljseditor/qmlexpressionundercursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/qmljseditor/qmlexpressionundercursor.cpp') diff --git a/src/plugins/qmljseditor/qmlexpressionundercursor.cpp b/src/plugins/qmljseditor/qmlexpressionundercursor.cpp index 70c019795d..f95db88828 100644 --- a/src/plugins/qmljseditor/qmlexpressionundercursor.cpp +++ b/src/plugins/qmljseditor/qmlexpressionundercursor.cpp @@ -130,7 +130,7 @@ namespace QmlJSEditor { _pos = pos; _scopes.clear(); _currentSymbol = 0; - Node::accept(doc->program(), this); + Node::accept(doc->qmlProgram(), this); return _scopes; } -- cgit v1.2.1