function setMonarchTokensProvider(languageId, languageDef) {
        var lexer = monarchCompile_1.compile(languageId, languageDef);
        var adapter = monarchLexer_1.createTokenizationSupport(standaloneServices_1.StaticServices.modeService.get(), standaloneServices_1.StaticServices.standaloneThemeService.get(), languageId, lexer);
        return modes.TokenizationRegistry.register(languageId, adapter);
    }
Set the tokens provider for a language (monarch implementation).