Injected languages in string literal concatenation PyCharm and other IDEs
已回答
Hello. Is there any way to handle language injection in string literal concatenations with a low-level tool like MultiHostInjector? I would like to support working for different IDEs
请先登录再写评论。
Please explain your problem in more detail. How is it related to PyCharm?
I have a language. I need to do an injection of that language into string concatenations. I find MultiHostInjector suitable for this, but it does not support concatenation. I found ConcatenationAwareInjector but it works only for Java
You must provide a custom implementation for your language of
ConcatenationAwareInjectorEP.You can take a look at Java’s implementation as reference:
org.intellij.plugins.intelliLang.inject.java.ConcatenationInjectorandcom.intellij.psi.impl.source.tree.injected.JavaConcatenationToInjectorAdapter