From 29716441da9867a039964da8940b99a641716441 Mon Sep 17 00:00:00 2001 From: Carmen Geelhaar Date: Sun, 1 Oct 2023 20:15:03 +0200 Subject: [PATCH] fix: add 'kt' and 'kts' alias for kotlin --- packages/shiki/src/languages.ts | 5 +++-- scripts/grammarSources.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shiki/src/languages.ts b/packages/shiki/src/languages.ts index fc0b45e8d..118e47829 100644 --- a/packages/shiki/src/languages.ts +++ b/packages/shiki/src/languages.ts @@ -84,7 +84,7 @@ export type Lang = | 'jssm' | 'fsl' | 'jsx' | 'julia' - | 'kotlin' + | 'kotlin' | 'kt' | 'kts' | 'kusto' | 'kql' | 'latex' | 'less' @@ -781,7 +781,8 @@ export const languages: ILanguageRegistration[] = [ scopeName: 'source.kotlin', path: 'kotlin.tmLanguage.json', displayName: 'Kotlin', - samplePath: 'kotlin.sample' + samplePath: 'kotlin.sample', + aliases: ['kt', 'kts'] }, { id: 'kusto', diff --git a/scripts/grammarSources.ts b/scripts/grammarSources.ts index d222cab46..2bcee3512 100644 --- a/scripts/grammarSources.ts +++ b/scripts/grammarSources.ts @@ -372,6 +372,7 @@ export const languageAliases = { ini: ['properties'], javascript: ['js'], jssm: ['fsl'], + kotlin: ['kt', 'kts'], kusto: ['kql'], make: ['makefile'], markdown: ['md'],