{"version":3,"file":"sourceCodeGrammars.cjs","names":["languageIdToDefinition"],"sources":["../../src/helpers/sourceCodeGrammars.ts"],"sourcesContent":["import type { SourceCodeGrammar } from './removeCommentsInSourceCode.js';\nimport { languageIdToDefinition } from '../types/language.js';\n\nexport const languageIdToSourceCodeGrammar = Object.fromEntries(\n  Object.entries(languageIdToDefinition).flatMap(([languageId, languageDefinition]) =>\n    languageDefinition.grammer ? [[languageId, languageDefinition.grammer] as const] : []\n  )\n) as Readonly<Record<string, SourceCodeGrammar | undefined>>;\n"],"mappings":"sDAGa,EAAgC,OAAO,YAClD,OAAO,QAAQA,EAAAA,sBAAsB,CAAC,CAAC,SAAS,CAAC,EAAY,KAC3D,EAAmB,QAAU,CAAC,CAAC,EAAY,EAAmB,OAAO,CAAU,EAAI,CAAC,CACtF,CACF"}