1
0
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:
Acaibird
2025-03-18 20:35:29 +01:00
committed by Christian Brabandt
parent c4815c157b
commit 18a6853a76
3 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
" Vim support file to detect file types " Vim support file to detect file types
" "
" Maintainer: The Vim Project <https://github.com/vim/vim> " 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> " Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Listen very carefully, I will say this only once " 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 au BufNewFile,BufRead {.,}tmux*.conf setf tmux
" TOML " TOML
au BufNewFile,BufRead *.toml setf toml au BufNewFile,BufRead *.toml,uv.lock setf toml
" TPP - Text Presentation Program " TPP - Text Presentation Program
au BufNewFile,BufRead *.tpp setf tpp au BufNewFile,BufRead *.tpp setf tpp

View File

@@ -818,7 +818,7 @@ def s:GetFilenameChecks(): dict<list<string>>
tla: ['file.tla'], tla: ['file.tla'],
tli: ['file.tli'], tli: ['file.tli'],
tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'], 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', 'any/containers/containers.conf.d/file.conf',
'any/containers/containers.conf.modules/file.conf', 'any/containers/containers.conf.modules/any/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', 'any/containers/registries.conf', 'any/containers/registries.conf.d/file.conf',

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1220,
/**/ /**/
1219, 1219,
/**/ /**/