Commit 3d92bc8c authored by Francis Herne's avatar Francis Herne

Add `text/x-python3` to mimetypes.

Apparently this exists on some systems, and KDevelop's plugin loader
 doesn't understand `subtype-of` in the xml spec.
parent ec8c1c43
......@@ -69,6 +69,7 @@
],
"X-KDevelop-Mode": "NoGUI",
"X-KDevelop-SupportedMimeTypes": [
"text/x-python"
"text/x-python",
"text/x-python3"
]
}
......@@ -153,7 +153,8 @@ SourceFormatterItemList LanguageSupport::sourceFormatterItems() const
autopep8.setOverrideSample("class klass:\n def method(arg1,arg2):\n a=3+5\n"
"def function(arg,*vararg,**kwargs): return arg+kwarg[0]\nfunction(3, 5, 7)");
using P = SourceFormatterStyle::MimeHighlightPair;
autopep8.setMimeTypes(SourceFormatterStyle::MimeList{ P{"text/x-python", "Python"} });
autopep8.setMimeTypes(SourceFormatterStyle::MimeList{ P{"text/x-python", "Python"},
P{"text/x-python3", "Python 3"} });
QString autopep8path = QStandardPaths::findExecutable("autopep8");
if (autopep8path.isEmpty()) {
// TODO: proper error handling/user notification
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment