Inject a custom language into a string literal key in JSProperty
已回答
Is that possible to inject a custom language into a string literal key in a JSProperty?
请先登录再写评论。
Hi Mikhail,
Languages can be injected into elements implementing PsiLanguageInjectionHost.
JavaScriptobject key type is LeafPsiElement, which does not implement it, so you cannot inject custom language here.You can inspect the PSI tree with https://plugins.jetbrains.com/docs/intellij/explore-api.html#31-use-internal-mode-and-psiviewer.