forked from aniani/vim
patch 9.1.1220: filetype: uv.lock file not recognized
Problem: filetype: uv.lock file not recognized Solution: detect uv.lock file as toml filetype (Acaibird) closes: #16924 Signed-off-by: Acaibird <durbannhawkey42@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
c4815c157b
commit
18a6853a76
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2025 Mar 12
|
||||
" Last Change: 2025 Mar 18
|
||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
@@ -2660,7 +2660,7 @@ au BufNewFile,BufRead *.tla setf tla
|
||||
au BufNewFile,BufRead {.,}tmux*.conf setf tmux
|
||||
|
||||
" TOML
|
||||
au BufNewFile,BufRead *.toml setf toml
|
||||
au BufNewFile,BufRead *.toml,uv.lock setf toml
|
||||
|
||||
" TPP - Text Presentation Program
|
||||
au BufNewFile,BufRead *.tpp setf tpp
|
||||
|
@@ -818,7 +818,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
tla: ['file.tla'],
|
||||
tli: ['file.tli'],
|
||||
tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
|
||||
toml: ['file.toml', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config', '.black',
|
||||
toml: ['file.toml', 'uv.lock', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config', '.black',
|
||||
'any/containers/containers.conf', 'any/containers/containers.conf.d/file.conf',
|
||||
'any/containers/containers.conf.modules/file.conf', 'any/containers/containers.conf.modules/any/file.conf',
|
||||
'any/containers/registries.conf', 'any/containers/registries.conf.d/file.conf',
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1220,
|
||||
/**/
|
||||
1219,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user