patch 9.1.1220: filetype: uv.lock file not recognized
Commit:
https://github.com/vim/vim/commit/18a6853a7627de231f0128237665112a0c8aaaf0
Author: Acaibird <[email protected]>
Date: Tue Mar 18 20:35:29 2025 +0100
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 22324df8b..d4ecfcb7f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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 <[email protected]>
" 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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index fe26d9256..bfebea4fe 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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',
diff --git a/src/version.c b/src/version.c
index 93cda6cc9..606cc1e7d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1220,
/**/
1219,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1tucs4-0015yq-3L%40256bit.org.