]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1220: filetype: uv.lock file not recognized v9.1.1220
authorAcaibird <durbannhawkey42@gmail.com>
Tue, 18 Mar 2025 19:35:29 +0000 (20:35 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Mar 2025 19:35:29 +0000 (20:35 +0100)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 22324df8b3b7a7f8896e0c0a2eec56d5f7086800..d4ecfcb7f850009d8d84fd648df98dc03dcf7afb 100644 (file)
@@ -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
index fe26d92561a88f1ce5fa79e48acb789d156dd9cf..bfebea4feee402a4e449d81a445bd810b0f796f3 100644 (file)
@@ -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',
index 93cda6cc90f62a31d450a3cdb4fd9d1798a02c2f..606cc1e7d9e83f9e9bd7639f36592b5808760103 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1220,
 /**/
     1219,
 /**/