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

6c9f4f98f1

Co-authored-by: Hilmar Wiegand <me@hwgnd.de>
This commit is contained in:
Christian Clason 2024-04-02 23:04:11 +02:00
parent 99b3a068de
commit e74cd1d9ff
2 changed files with 2 additions and 0 deletions

View File

@ -1052,6 +1052,7 @@ local extension = {
mts = 'typescript',
cts = 'typescript',
tsx = 'typescriptreact',
tsp = 'typespec',
uc = 'uc',
uit = 'uil',
uil = 'uil',

View File

@ -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'],