embed a language into an existing language.
I want to embed a language into an existing language.
The parameters of the xml SQL in Mybatis are like:
<select> SELECt * .... WHERE name=#{name}
</select>
I found the narration method for this post,
It says that you can use lazy-parsable + injection, but I don't know how to do it,
is there a specific tutorial?
thinks
Please sign in to leave a comment.
You can use lazy-parsable elements in your language, not provided by other plugin (if it was not designed for this).
For xml I believe the only way is injection. See `com.intellij.psi.LanguageInjector` and `com.intellij.lang.injection.MultiHostInjector`