In visual studio code we have a concept who name is injection grammars and definition is
let you extend an existing grammar. An injection grammar is a regular TextMate grammar that is injected into a specific scope within an existing grammar. Example applications of injection grammars:
- Highlighting keywords such as TODO in comments.
- Add more specific scope information to an existing grammar.
- Adding highlighting for a new language to Markdown fenced code blocks.
So as you can see in Port vscode (visual studio code) language server to Visual Studio extension I want to create ansible extension for Visual Studio 2022, for syntax highlighting, I found some syntax grammars in https://github.com/ansible/vscode-ansible , but the problem is tmLanguages exists in the vscode-ansible project uses injection grammars as you can see in package.json, and I do not know how to use injection grammars in Visual Studio 2022
Please help me to know How to use injection grammars in Visual Studio? (and describe the example to use syntaxes exists in vscode-ansible)
I request sample in https://github.com/microsoft/VSSDK-Extensibility-Samples/issues/278#issue-1589668356