patch 9.1.0273: filetype: keymap files are not recognized

Commit: 
https://github.com/vim/vim/commit/b78753db5fac879a76da3519101e815451d0d455
Author: 0xadk <0x...@users.noreply.github.com>
Date:   Sun Apr 7 18:22:41 2024 +0200

    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 <0x...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 40b17a0ef..99a12d996 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 3ee1cd751..a26a3f08f 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 6d9a18c10..da75e4b20 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    273,
 /**/
     272,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rtVPA-00E8Hw-K5%40256bit.org.

Raspunde prin e-mail lui