patch 9.1.0253: filetype: typespec files are not recognized Commit: https://github.com/vim/vim/commit/6c9f4f98f1cda3793406724a260cd651210a5d0d Author: Hilmar Wiegand <m...@hwgnd.de> Date: Tue Apr 2 18:54:54 2024 +0200
patch 9.1.0253: filetype: typespec files are not recognized Problem: filetype: typespec files are not recognized Solution: Detect '*.tsp' files as typespec (Hilmar Wiegand) Specs is at https://typespec.io/ closes: #14392 Signed-off-by: Hilmar Wiegand <m...@hwgnd.de> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 077aa63e0..81ce17415 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2373,6 +2373,9 @@ au BufNewFile,BufRead *.mts,*.cts setf typescript " TypeScript with React au BufNewFile,BufRead *.tsx setf typescriptreact +" TypeSpec files +au BufNewFile,BufRead *.tsp setf typespec + " Motif UIT/UIL files au BufNewFile,BufRead *.uit,*.uil setf uil diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 14476cbca..0683feff7 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -756,6 +756,7 @@ def s:GetFilenameChecks(): dict<list<string>> typescript: ['file.mts', 'file.cts'], 'typescript.glimmer': ['file.gts'], typescriptreact: ['file.tsx'], + typespec: ['file.tsp'], ungrammar: ['file.ungram'], uc: ['file.uc'], udevconf: ['/etc/udev/udev.conf', 'any/etc/udev/udev.conf'], diff --git a/src/version.c b/src/version.c index e927c0b01..4c7ab8436 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 253, /**/ 252, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1rrhUZ-004ECt-Cy%40256bit.org.