mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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 <zeertzjq@outlook.com> Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
17e702a51a
commit
82a579e15a
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -225,6 +225,7 @@ runtime/ftplugin/sdoc.vim @gpanders
|
|||||||
runtime/ftplugin/sed.vim @dkearns
|
runtime/ftplugin/sed.vim @dkearns
|
||||||
runtime/ftplugin/sh.vim @dkearns
|
runtime/ftplugin/sh.vim @dkearns
|
||||||
runtime/ftplugin/slint.vim @ribru17
|
runtime/ftplugin/slint.vim @ribru17
|
||||||
|
runtime/ftplugin/snakemake.vim @ribru17
|
||||||
runtime/ftplugin/solidity.vim @cothi
|
runtime/ftplugin/solidity.vim @cothi
|
||||||
runtime/ftplugin/solution.vim @dkearns
|
runtime/ftplugin/solution.vim @dkearns
|
||||||
runtime/ftplugin/spec.vim @ignatenkobrain
|
runtime/ftplugin/spec.vim @ignatenkobrain
|
||||||
|
@ -2243,6 +2243,9 @@ au BufNewFile,BufRead *.smt,*.smith setf smith
|
|||||||
" Smithy
|
" Smithy
|
||||||
au BufNewFile,BufRead *.smithy setf smithy
|
au BufNewFile,BufRead *.smithy setf smithy
|
||||||
|
|
||||||
|
" Snakemake
|
||||||
|
au BufNewFile,BufRead Snakefile,*.smk setf snakemake
|
||||||
|
|
||||||
" Snobol4 and spitbol
|
" Snobol4 and spitbol
|
||||||
au BufNewFile,BufRead *.sno,*.spt setf snobol4
|
au BufNewFile,BufRead *.sno,*.spt setf snobol4
|
||||||
|
|
||||||
|
13
runtime/ftplugin/snakemake.vim
Normal file
13
runtime/ftplugin/snakemake.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: snakemake
|
||||||
|
" Maintainer: Riley Bruins <ribru17@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<'
|
@ -669,6 +669,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
smith: ['file.smt', 'file.smith'],
|
smith: ['file.smt', 'file.smith'],
|
||||||
smithy: ['file.smithy'],
|
smithy: ['file.smithy'],
|
||||||
sml: ['file.sml'],
|
sml: ['file.sml'],
|
||||||
|
snakemake: ['file.smk', 'Snakefile'],
|
||||||
snobol4: ['file.sno', 'file.spt'],
|
snobol4: ['file.sno', 'file.spt'],
|
||||||
solidity: ['file.sol'],
|
solidity: ['file.sol'],
|
||||||
solution: ['file.sln'],
|
solution: ['file.sln'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
486,
|
||||||
/**/
|
/**/
|
||||||
485,
|
485,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user