patch 9.1.0486: filetype: Snakemake files are not recognized

Commit: 
https://github.com/vim/vim/commit/82a579e15ad78f4b99d2957300da3076ccc7d378
Author: Riley Bruins <ribr...@hotmail.com>
Date:   Fri Jun 14 20:47:05 2024 +0200

    patch 9.1.0486: filetype: Snakemake files are not recognized
    
    Problem:  filetype: Snakemake files are not recognized
    Solution: Detect '*.smk' and Snakefile files as snakemake filetype
              (Riley Bruins)
    
    See:
    
https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#distribution-and-reproducibility
    
    closes: #14992
    
    Co-authored-by: zeertzjq <zeert...@outlook.com>
    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 926dc07cf..1254782e3 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -225,6 +225,7 @@ runtime/ftplugin/sdoc.vim           @gpanders
 runtime/ftplugin/sed.vim               @dkearns
 runtime/ftplugin/sh.vim                        @dkearns
 runtime/ftplugin/slint.vim             @ribru17
+runtime/ftplugin/snakemake.vim         @ribru17
 runtime/ftplugin/solidity.vim          @cothi
 runtime/ftplugin/solution.vim          @dkearns
 runtime/ftplugin/spec.vim              @ignatenkobrain
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 801a8f346..a2daf144c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2243,6 +2243,9 @@ au BufNewFile,BufRead *.smt,*.smith               setf 
smith
 " Smithy
 au BufNewFile,BufRead *.smithy                 setf smithy
 
+" Snakemake
+au BufNewFile,BufRead Snakefile,*.smk          setf snakemake
+
 " Snobol4 and spitbol
 au BufNewFile,BufRead *.sno,*.spt              setf snobol4
 
diff --git a/runtime/ftplugin/snakemake.vim b/runtime/ftplugin/snakemake.vim
new file mode 100644
index 000000000..ab90ca10b
--- /dev/null
+++ b/runtime/ftplugin/snakemake.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language:    snakemake
+" Maintainer:  Riley Bruins <ribr...@gmail.com>
+" Last Change: 2024 Jun 13
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setl comments=:# commentstring=#\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 284a55fe6..c43eda78f 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -669,6 +669,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     smith: ['file.smt', 'file.smith'],
     smithy: ['file.smithy'],
     sml: ['file.sml'],
+    snakemake: ['file.smk', 'Snakefile'],
     snobol4: ['file.sno', 'file.spt'],
     solidity: ['file.sol'],
     solution: ['file.sln'],
diff --git a/src/version.c b/src/version.c
index 7c8a10142..1035b606d 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 */
+/**/
+    486,
 /**/
     485,
 /**/

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sIC9a-00Cz9V-UP%40256bit.org.

Raspunde prin e-mail lui