language injection with sql annotator error


I have implement a multipleHostInjector for xmlText to support sql language 

public void getLanguagesToInject(@NotNull MultiHostRegistrar registrar, @NotNull PsiElement context) {
if (context instanceof XmlText) {
MultiHostRegistrar multiHostRegistrar = registrar.startInjecting(SqlLanguage.INSTANCE);
.addPlace("select ", null, theText, new TextRange(0, context.getTextLength()));

there is a 'select ' in prefix

when i edit the sql in xmltext, the completion work fine.

edit the sql in fragment work fine.

but the annotator show the error

Is there any special rule with the annotator when using language injection with prefix?

1 comment

can anyone help to answer this?  there is no doc about the language injection feature.



Please sign in to leave a comment.