language injection with sql annotator error
HI
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);
multiHostRegistrar
.addPlace("select ", null, theText, new TextRange(0, context.getTextLength()));
multiHostRegistrar.doneInjecting();
}
}
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?
请先登录再写评论。
can anyone help to answer this? there is no doc about the language injection feature.
Thanks.