Skip to content

Commit

Permalink
fix: add 'kt' and 'kts' alias for kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
carmen-gh committed Oct 1, 2023
1 parent f705b0f commit 2971644
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shiki/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type Lang =
| 'jssm' | 'fsl'
| 'jsx'
| 'julia'
| 'kotlin'
| 'kotlin' | 'kt' | 'kts'
| 'kusto' | 'kql'
| 'latex'
| 'less'
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions scripts/grammarSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export const languageAliases = {
ini: ['properties'],
javascript: ['js'],
jssm: ['fsl'],
kotlin: ['kt', 'kts'],
kusto: ['kql'],
make: ['makefile'],
markdown: ['md'],
Expand Down

0 comments on commit 2971644

Please sign in to comment.