plugin development, language injection in js xml
Hello,
Currently it's possible to have XML inside js files and by default its parsed as jsx(react).
Ember is currently developing a similar pattern. See https://github.com/ember-template-imports/ember-template-imports .
I'm trying to support it in intellij idea.
I first tried a simple language injection in js with the pattern xmlTag().withName("template") . But that is not working. Same thing if i try it via xml language injection.
I'm also trying now to implement a custom file type in the plugin by extending thr JavaScript parsers from intellij, but no idea where i should hook into to inject the language or replace the psielement with the one from the other language.
here is a WIP: https://github.com/patricklx/intellij-emberjs-experimental/blob/2020-support/src/main/kotlin/com/emberjs/gjs/GjsFileType.kt
Please sign in to leave a comment.
Could you please repost on our Slack, I DM'ed you there with explanation on why. Thanks.