mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +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',
|
mts = 'typescript',
|
||||||
cts = 'typescript',
|
cts = 'typescript',
|
||||||
tsx = 'typescriptreact',
|
tsx = 'typescriptreact',
|
||||||
|
tsp = 'typespec',
|
||||||
uc = 'uc',
|
uc = 'uc',
|
||||||
uit = 'uil',
|
uit = 'uil',
|
||||||
uil = 'uil',
|
uil = 'uil',
|
||||||
|
|||||||
@@ -689,6 +689,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'typescript': ['file.mts', 'file.cts'],
|
\ 'typescript': ['file.mts', 'file.cts'],
|
||||||
\ 'typescript.glimmer': ['file.gts'],
|
\ 'typescript.glimmer': ['file.gts'],
|
||||||
\ 'typescriptreact': ['file.tsx'],
|
\ 'typescriptreact': ['file.tsx'],
|
||||||
|
\ 'typespec': ['file.tsp'],
|
||||||
\ 'ungrammar': ['file.ungram'],
|
\ 'ungrammar': ['file.ungram'],
|
||||||
\ 'uc': ['file.uc'],
|
\ 'uc': ['file.uc'],
|
||||||
\ 'udevconf': ['/etc/udev/udev.conf', 'any/etc/udev/udev.conf'],
|
\ 'udevconf': ['/etc/udev/udev.conf', 'any/etc/udev/udev.conf'],
|
||||||
|
|||||||
Reference in New Issue
Block a user