mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user