From 7fc6c0e4dab4e80b9806a973936af54276468513 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 27 Sep 2022 11:57:13 +0100 Subject: [PATCH] patch 9.0.0602: new TypeScript extensions are not recognized Problem: New TypeScript extensions are not recognized. Solution: Recognize .mts and .cts files. (closes #11237) --- runtime/filetype.vim | 11 +++++++---- src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index a5ac81262..725bb6d28 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -770,8 +770,8 @@ au BufNewFile,BufRead gitolite.conf setf gitolite au BufNewFile,BufRead {,.}gitolite.rc,example.gitolite.rc setf perl " Glimmer-flavored TypeScript and JavaScript -au BufNewFile,BufRead *.gts setf typescript.glimmer -au BufNewFile,BufRead *.gjs setf javascript.glimmer +au BufNewFile,BufRead *.gts setf typescript.glimmer +au BufNewFile,BufRead *.gjs setf javascript.glimmer " Gnuplot scripts au BufNewFile,BufRead *.gpi,.gnuplot setf gnuplot @@ -2086,7 +2086,7 @@ au BufNewFile,BufRead *.tsv setf tsv " TWIG files au BufNewFile,BufReadPost *.twig setf twig -" Typescript or Qt translation file (which is XML) +" TypeScript or Qt translation file (which is XML) au BufNewFile,BufReadPost *.ts \ if getline(1) =~ '