patch 9.2.0333: filetype: PklProject files are not recognized
Commit:
https://github.com/vim/vim/commit/871e6c6cf9835b1f266461f3eb6c7bf07e841779
Author: Nihaal Sangha <
nihaa...@gmail.com>
Date: Fri Apr 10 18:40:37 2026 +0000
patch 9.2.0333: filetype: PklProject files are not recognized
Problem: filetype: PklProject files are not recognized
Solution: Detect PklProject files as pkl filetype
(Nihaal Sangha).
Reference:
https://pkl-lang.org/
https://github.com/apple/pkl
https://github.com/apple/pkl-pantry
closes: #19948
Signed-off-by: Nihaal Sangha <
nihaa...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 8bfd13da1..0c76a60a5 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -890,7 +890,7 @@ au BufNewFile,BufRead requirements/*.txt setf requirements
au BufNewFile,BufRead requires/*.txt setf requirements
" Pkl
-au BufNewFile,BufRead *.pkl,*.pcf,pkl-lsp://* setf pkl
+au BufNewFile,BufRead PklProject,*.pkl,*.pcf,pkl-lsp://* setf pkl
" WIC kickstarter files
au BufNewFile,BufRead *.wks,*.
wks.in,*.wks.inc setf wks
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 04036b0eb..70e269ee6 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -634,7 +634,7 @@ def s:GetFilenameChecks(): dict<list<string>>
pilrc: ['file.rcp'],
pine: ['.pinerc', 'pinerc', '.pinercex', 'pinercex'],
pinfo: ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'],
- pkl: ['file.pkl', 'file.pcf'],
+ pkl: ['file.pkl', 'file.pcf', 'any/PklProject'],
pli: ['file.pli', 'file.pl1'],
plm: ['file.plm', 'file.p36', 'file.pac'],
plp: ['file.plp'],
diff --git a/src/version.c b/src/version.c
index e2dbe11e8..13448796f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 333,
/**/
332,
/**/