]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0273: filetype: keymap files are not recognized v9.1.0273
author0xadk <0xadk@users.noreply.github.com>
Sun, 7 Apr 2024 16:22:41 +0000 (18:22 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 7 Apr 2024 16:22:41 +0000 (18:22 +0200)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 40b17a0ef4e72ec7888ae42d29a5158813d77716..99a12d99642f0b669c1aa9107378fbf0932fe778 100644 (file)
@@ -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
index 3ee1cd751acbfd42f549813b0f3908f1ede5045e..a26a3f08f00b1b4ce2245b67922d254b39923448 100644 (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'],
     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'],
index 6d9a18c1092bdfc2c8d462d6274ff3590399560e..da75e4b20fd0ccf5572ca1a4f7d542def47442a8 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    273,
 /**/
     272,
 /**/