mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-46321 Allow to inject PyDocstring language
PyDocstring is not that useful in the context of Markdown injections. It doesn't handle the command output properly: it thinks any line with no ">>>" or "..." is just Python code. Nevertheless, it's a step in the right direction. GitOrigin-RevId: 2ed76d2ae08f3604214e0dd7d952d0fe28c4821e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a0abf9fd04
commit
42327842df
+2
-1
@@ -17,6 +17,7 @@ package com.jetbrains.python.documentation.doctest;
|
||||
|
||||
import com.intellij.codeInsight.intention.impl.QuickEditActionKeys;
|
||||
import com.intellij.lang.DependentLanguage;
|
||||
import com.intellij.lang.InjectableLanguage;
|
||||
import com.intellij.lang.Language;
|
||||
import com.jetbrains.python.PyNames;
|
||||
import com.jetbrains.python.PythonLanguage;
|
||||
@@ -24,7 +25,7 @@ import com.jetbrains.python.PythonLanguage;
|
||||
/**
|
||||
* User : ktisha
|
||||
*/
|
||||
public class PyDocstringLanguageDialect extends Language implements DependentLanguage {
|
||||
public class PyDocstringLanguageDialect extends Language implements DependentLanguage, InjectableLanguage {
|
||||
|
||||
public static PyDocstringLanguageDialect getInstance() {
|
||||
return (PyDocstringLanguageDialect)PyDocstringFileType.INSTANCE.getLanguage();
|
||||
|
||||
Reference in New Issue
Block a user