UNPKG

@blitz/textmate

Version:
14 lines (13 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.grammars = exports.languages = exports.getLanguageConfigurationLocation = exports.getGrammarLocation = exports.isLanguageDefinition = exports.isGrammarDefinition = void 0; var type_guards_1 = require("./type-guards"); Object.defineProperty(exports, "isGrammarDefinition", { enumerable: true, get: function () { return type_guards_1.isGrammarDefinition; } }); Object.defineProperty(exports, "isLanguageDefinition", { enumerable: true, get: function () { return type_guards_1.isLanguageDefinition; } }); var utils_1 = require("./utils"); Object.defineProperty(exports, "getGrammarLocation", { enumerable: true, get: function () { return utils_1.getGrammarLocation; } }); Object.defineProperty(exports, "getLanguageConfigurationLocation", { enumerable: true, get: function () { return utils_1.getLanguageConfigurationLocation; } }); // Use `require` instead of `import` because we don't want the `grammars.json` file to be resolved at compile time const data = require('../grammars/grammars.json'); exports.languages = data.languages; exports.grammars = data.grammars;