patch 9.1.1549: filetype: pkl files are not recognized

Commit: 
https://github.com/vim/vim/commit/d128889b306680338dbfb54ccc1ff32dc114165d
Author: Riley Bruins <ribr...@hotmail.com>
Date:   Tue Jul 15 21:21:29 2025 +0200

    patch 9.1.1549: filetype: pkl files are not recognized
    
    Problem:  filetype: pkl files are not recognized
    Solution: detect *.pkl files as pkl filetype, include
              a filetype plugin (Riley Bruins)
    
    References:
    https://pkl-lang.org/
    https://github.com/apple/pkl
    
    closes: #17751
    
    Signed-off-by: Riley Bruins <ribr...@hotmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 1fa1a1966..cb73fc4a5 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -252,6 +252,7 @@ runtime/ftplugin/pbtxt.vim                          
@lakshayg
 runtime/ftplugin/pdf.vim                               @tpope
 runtime/ftplugin/perl.vim                              @petdance @dkearns
 runtime/ftplugin/php.vim                               @dkearns
+runtime/ftplugin/pkl.vim                               @ribru17
 runtime/ftplugin/plsql.vim                             @lee-lindley
 runtime/ftplugin/pod.vim                               @petdance @dkearns
 runtime/ftplugin/poefilter.vim                         @ObserverOfTime
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 7aa591e03..59b2426e8 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1957,6 +1957,9 @@ au BufNewFile,BufRead Pipfile.lock                setf 
json
 " Pixi lock
 au BufNewFile,BufRead pixi.lock                        setf yaml
 
+" Pkl
+au BufNewFile,BufRead *.pkl                    setf pkl
+
 " PL/1, PL/I
 au BufNewFile,BufRead *.pli,*.pl1              setf pli
 
diff --git a/runtime/ftplugin/pkl.vim b/runtime/ftplugin/pkl.vim
new file mode 100644
index 000000000..52cf6b8b4
--- /dev/null
+++ b/runtime/ftplugin/pkl.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin
+" Language:    Pkl
+" Maintainer:  Riley Bruins <ribr...@gmail.com>
+" Last Change: 2025 Jul 14
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 4669f8f61..8aab47064 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -605,6 +605,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'],
     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 7c652b855..347875822 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1549,
 /**/
     1548,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1ublLq-007hfb-FQ%40256bit.org.

Raspunde prin e-mail lui