forked from qt-creator/qt-creator
TextEditor: Clean up/streamline SyntaxHighlighter setup
No need for the third construction way if that's not really used by the factories anyway. Change-Id: Id3b34da5b0320babae9bef96a79bbaa52e0db06d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -113,7 +113,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
|
||||
addAutoReleasedObject(new QmlJSSnippetProvider);
|
||||
|
||||
auto hf = new TextEditor::HighlighterFactory;
|
||||
hf->setProductType<Highlighter>();
|
||||
hf->setProductType<QmlJSHighlighter>();
|
||||
hf->setId(Constants::C_QMLJSEDITOR_ID);
|
||||
hf->addMimeType(QmlJSTools::Constants::QML_MIMETYPE);
|
||||
hf->addMimeType(QmlJSTools::Constants::QMLPROJECT_MIMETYPE);
|
||||
|
||||
Reference in New Issue
Block a user