commit e74cd1d9ffa935914905c6fc666c5bbf0cba36b7
parent 99b3a068de1032975c4ab1486c0594a37aeabde8
Author: Christian Clason <c.clason@uni-graz.at>
Date: Tue, 2 Apr 2024 23:04:11 +0200
vim-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: vim/vim#14392
https://github.com/vim/vim/commit/6c9f4f98f1cda3793406724a260cd651210a5d0d
Co-authored-by: Hilmar Wiegand <me@hwgnd.de>
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1052,6 +1052,7 @@ local extension = {
mts = 'typescript',
cts = 'typescript',
tsx = 'typescriptreact',
+ tsp = 'typespec',
uc = 'uc',
uit = 'uil',
uil = 'uil',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -689,6 +689,7 @@ func s:GetFilenameChecks() abort
\ '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'],