Skip to content

Commit

Permalink
patch 9.1.0273: filetype: keymap files are not recognized
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
0xAdk authored and chrisbra committed Apr 7, 2024
1 parent 9d956ee commit b78753d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/filetype.vim
Expand Up @@ -663,7 +663,7 @@ au BufNewFile,BufRead *.dsl
au BufNewFile,BufRead *.dtd setf dtd

" 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
au BufNewFile,BufRead Earthfile setf earthfile
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/test_filetype.vim
Expand Up @@ -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'],
dtd: ['file.dtd'],
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'],
dylan: ['file.dylan'],
dylanintr: ['file.intr'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
273,
/**/
272,
/**/
Expand Down

0 comments on commit b78753d

Please sign in to comment.