Is there anyway to highlight 'injection in injection'?

已回答

Currently, I can inject language A into language B, and completions, highlightings, references work well if B is opened in an independent file. But they don't work well if I inject language B into another language C.

Is there any possible way to make them work? I really need this.

Thanks.

0

Unfortunately nested language injection is not supported.

 

There're some workarounds for this limitation that involve the combination of other available options, e.g.

1. lazy-parsable + injection instead of injection + injection

2. multi-root PSI files mostly used in template languages like HTML, JSP, Velocity

3. other use-case-dependent tricks

 

See ILazyParseableElementType, TemplateLanguageFileViewProvider API

0

Thank you so much for your reply. I'll try it later

0

请先登录再写评论。