forked from qt-creator/qt-creator
TextEditor: Move comment definitions back to *Widget
Only used there, and avoids back-links to editors. Change-Id: I81206057ce89d42aef7febb840cf9e44b869df0e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -64,7 +64,6 @@ public:
|
||||
{
|
||||
addContext(Constants::C_PYTHONEDITOR_ID);
|
||||
setDuplicateSupported(true);
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
}
|
||||
|
||||
bool open(QString *errorString, const QString &fileName, const QString &realFileName)
|
||||
@@ -111,6 +110,7 @@ PythonEditorFactory::PythonEditorFactory()
|
||||
setEditorCreator([]() { return new PythonEditor; });
|
||||
setIndenterCreator([]() { return new PythonIndenter; });
|
||||
setSyntaxHighlighterCreator([]() { return new PythonHighlighter; });
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user