patch 9.1.0926: filetype: Pixi lock files are not recognized
Commit:
https://github.com/vim/vim/commit/7d1bb90dcf711c732a49e0a45e56028a4853a17d
Author: Brandon Maier <[email protected]>
Date: Sat Dec 14 20:56:34 2024 +0100
patch 9.1.0926: filetype: Pixi lock files are not recognized
Problem: filetype: Pixi lock files are not recognized
Solution: detect "pixi.lock" file as yaml filetype
(Brandon Maier)
Reference:
https://pixi.sh/latest/features/lockfile/
closes: #16212
Signed-off-by: Brandon Maier <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index cac7c2ca4..eb1d85128 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1873,6 +1873,9 @@ au BufNewFile,BufRead requires/*.txt setf
requirements
au BufNewFile,BufRead Pipfile setf toml
au BufNewFile,BufRead Pipfile.lock setf json
+" Pixi lock
+au BufNewFile,BufRead pixi.lock setf yaml
+
" PL/1, PL/I
au BufNewFile,BufRead *.pli,*.pl1 setf pli
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index e9535bf03..583cca639 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -893,7 +893,7 @@ def s:GetFilenameChecks(): dict<list<string>>
xslt: ['file.xsl', 'file.xslt'],
yacc: ['file.yy', 'file.yxx', 'file.y++'],
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config',
'.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc',
'yarn.lock',
- '/home/user/.kube/config', '.condarc', 'condarc'],
+ '/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'],
yang: ['file.yang'],
yuck: ['file.yuck'],
z8a: ['file.z8a'],
diff --git a/src/version.c b/src/version.c
index 789df38a2..caf3d5d48 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 */
+/**/
+ 926,
/**/
925,
/**/
--
--
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/E1tMYJ2-00DxB5-2j%40256bit.org.