mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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 <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
0992f62fc1
commit
d128889b30
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -252,6 +252,7 @@ runtime/ftplugin/pbtxt.vim @lakshayg
|
|||||||
runtime/ftplugin/pdf.vim @tpope
|
runtime/ftplugin/pdf.vim @tpope
|
||||||
runtime/ftplugin/perl.vim @petdance @dkearns
|
runtime/ftplugin/perl.vim @petdance @dkearns
|
||||||
runtime/ftplugin/php.vim @dkearns
|
runtime/ftplugin/php.vim @dkearns
|
||||||
|
runtime/ftplugin/pkl.vim @ribru17
|
||||||
runtime/ftplugin/plsql.vim @lee-lindley
|
runtime/ftplugin/plsql.vim @lee-lindley
|
||||||
runtime/ftplugin/pod.vim @petdance @dkearns
|
runtime/ftplugin/pod.vim @petdance @dkearns
|
||||||
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
||||||
|
@ -1957,6 +1957,9 @@ au BufNewFile,BufRead Pipfile.lock setf json
|
|||||||
" Pixi lock
|
" Pixi lock
|
||||||
au BufNewFile,BufRead pixi.lock setf yaml
|
au BufNewFile,BufRead pixi.lock setf yaml
|
||||||
|
|
||||||
|
" Pkl
|
||||||
|
au BufNewFile,BufRead *.pkl setf pkl
|
||||||
|
|
||||||
" PL/1, PL/I
|
" PL/1, PL/I
|
||||||
au BufNewFile,BufRead *.pli,*.pl1 setf pli
|
au BufNewFile,BufRead *.pli,*.pl1 setf pli
|
||||||
|
|
||||||
|
14
runtime/ftplugin/pkl.vim
Normal file
14
runtime/ftplugin/pkl.vim
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Pkl
|
||||||
|
" Maintainer: Riley Bruins <ribru17@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<'
|
@ -605,6 +605,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
pilrc: ['file.rcp'],
|
pilrc: ['file.rcp'],
|
||||||
pine: ['.pinerc', 'pinerc', '.pinercex', 'pinercex'],
|
pine: ['.pinerc', 'pinerc', '.pinercex', 'pinercex'],
|
||||||
pinfo: ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'],
|
pinfo: ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'],
|
||||||
|
pkl: ['file.pkl'],
|
||||||
pli: ['file.pli', 'file.pl1'],
|
pli: ['file.pli', 'file.pl1'],
|
||||||
plm: ['file.plm', 'file.p36', 'file.pac'],
|
plm: ['file.plm', 'file.p36', 'file.pac'],
|
||||||
plp: ['file.plp'],
|
plp: ['file.plp'],
|
||||||
|
@ -719,6 +719,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 */
|
||||||
|
/**/
|
||||||
|
1549,
|
||||||
/**/
|
/**/
|
||||||
1548,
|
1548,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user