0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.1.0273: filetype: keymap files are not recognized

Problem:  filetype: keymap files are not recognized
Solution: Detect '*.keymap' files as Device Tree Files
          (0xadk)

closes: #14434

Signed-off-by: 0xadk <0xadk@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
0xadk
2024-04-07 18:22:41 +02:00
committed by Christian Brabandt
parent 9d956ee8ea
commit b78753db5f
3 changed files with 4 additions and 2 deletions

View File

@@ -663,7 +663,7 @@ au BufNewFile,BufRead *.dsl
au BufNewFile,BufRead *.dtd setf dtd au BufNewFile,BufRead *.dtd setf dtd
" DTS/DSTI/DTSO (device tree files) " DTS/DSTI/DTSO (device tree files)
au BufNewFile,BufRead *.dts,*.dtsi,*.dtso,*.its setf dts au BufNewFile,BufRead *.dts,*.dtsi,*.dtso,*.its,*.keymap setf dts
" Earthfile " Earthfile
au BufNewFile,BufRead Earthfile setf earthfile au BufNewFile,BufRead Earthfile setf earthfile

View File

@@ -215,7 +215,7 @@ def s:GetFilenameChecks(): dict<list<string>>
dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
dtd: ['file.dtd'], dtd: ['file.dtd'],
dtrace: ['/usr/lib/dtrace/io.d'], dtrace: ['/usr/lib/dtrace/io.d'],
dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its'], dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap'],
dune: ['jbuild', 'dune', 'dune-project', 'dune-workspace'], dune: ['jbuild', 'dune', 'dune-project', 'dune-workspace'],
dylan: ['file.dylan'], dylan: ['file.dylan'],
dylanintr: ['file.intr'], dylanintr: ['file.intr'],

View File

@@ -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 */
/**/
273,
/**/ /**/
272, 272,
/**/ /**/