@Repeatable(value=GrammarInjectionRegistrations.class) @Target(value={PACKAGE,TYPE}) public @interface GrammarInjectionRegistration
For example, to register the injection grammar highlighting TODO keywords in JavaScript and TypeScript comments, add the following annotation to an appropriate package-info file or to an appropriate Java class:
@GrammarInjectionRegistration(grammar="path/to/todo-injection.json", injectTo = {"source.js","source.ts"})