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:
parent
99b3a068de
commit
e74cd1d9ff
|
@ -1052,6 +1052,7 @@ local extension = {
|
|||
mts = 'typescript',
|
||||
cts = 'typescript',
|
||||
tsx = 'typescriptreact',
|
||||
tsp = 'typespec',
|
||||
uc = 'uc',
|
||||
uit = 'uil',
|
||||
uil = 'uil',
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue