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

0

Please explain your problem in more detail. How is it related to PyCharm?

0

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

0

You must provide a custom implementation for your language of ConcatenationAwareInjector EP.

You can take a look at Java’s implementation as reference: org.intellij.plugins.intelliLang.inject.java.ConcatenationInjector and com.intellij.psi.impl.source.tree.injected.JavaConcatenationToInjectorAdapter

0

请先登录再写评论。