{"version":3,"sources":["browser/textmate/textmate-contribution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,qCAAqC,eAAkD,CAAC;AAErG,MAAM,WAAW,qCAAqC;IAClD,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC9D;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D","file":"../../../src/browser/textmate/textmate-contribution.d.ts","sourcesContent":["/********************************************************************************\n * Copyright (C) 2018 Ericsson and others.\n *\n * This program and the accompanying materials are made available under the\n * terms of the Eclipse Public License v. 2.0 which is available at\n * http://www.eclipse.org/legal/epl-2.0.\n *\n * This Source Code may also be made available under the following Secondary\n * Licenses when the conditions for such availability set forth in the Eclipse\n * Public License v. 2.0 are satisfied: GNU General Public License, version 2\n * with the GNU Classpath Exception which is available at\n * https://www.gnu.org/software/classpath/license.html.\n *\n * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0\n ********************************************************************************/\n\nimport {TextmateRegistry} from './textmate-registry';\n\n/**\n * Callback for extensions to contribute language grammar definitions\n */\nexport const LanguageGrammarDefinitionContribution = Symbol('LanguageGrammarDefinitionContribution');\n\nexport interface LanguageGrammarDefinitionContribution {\n    registerTextmateLanguage(registry: TextmateRegistry): void;\n}\n\nexport function getEncodedLanguageId(languageId: string): number {\n    return monaco.languages.getEncodedLanguageId(languageId);\n}\n"]}