Language injection in feature file
Answered
Hi,
I have doc strings containing Yaml in a .feature file. I'd like to used language injection so that I get the benefits of syntax highlighting and schema validation for the Yaml in the file.
How would I go about implementing this?
Thanks
Please sign in to leave a comment.
You can go with implementing the multiHostInjector Extension Point extending the MultiHostInjector.
The issue here is that GherkinPystringImpl does not implement PsiLanguageInjectionHost so I don't think it's possible to implement this in a separate plugin unless the Cucumber plugin is modified so that GherkinPystringImpl implements PsiLanguageInjectionHost. Or is there a way around this ?