feat(editor): add Kotlin (.kt/.kts) syntax highlighting

Map .kt/.kts to the built-in kotlin StreamLanguage from
@codemirror/legacy-modes/mode/clike (no new dependencies).
This commit is contained in:
ymac
2026-08-16 04:11:30 +08:00
parent c9372de69b
commit d7dc609553
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -1103,6 +1103,7 @@ describe('editor language mapping', () => {
expect(languageKeyForExt('sh')).toBe('shell')
expect(languageKeyForExt('md')).toBe('md')
expect(languageKeyForExt('cs')).toBe('csharp')
expect(languageKeyForExt('kt')).toBe('kotlin')
expect(languageKeyForExt('txt')).toBeNull()
expect(languageKeyForExt('log')).toBeNull()
expect(languageKeyForExt('')).toBeNull()