]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0234: filetype: support for Intel HEX files is lacking v9.1.0234
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 16:54:55 +0000 (18:54 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 16:54:55 +0000 (18:54 +0200)
Problem:  filetype: support for Intel HEX files is lacking
Solution: Add more file extensions that are typical for Intel HEX files
          (Wu, Zhenyu)

Reference: https://en.wikipedia.org/wiki/Intel_HEX

closes: #14355

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index d53671ac66a6fbd2ee822cacbdd854fd5d0ac2ff..0937fba5a865bdf04da1260d045941c2b3c75082 100644 (file)
@@ -938,7 +938,7 @@ au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum      setf hercules
 au BufRead,BufNewFile *.heex                   setf heex
 
 " HEX (Intel)
-au BufNewFile,BufRead *.hex,*.h32              setf hex
+au BufNewFile,BufRead *.hex,*.ihex,*.int,*.ihe,*.ihx,*.mcs,*.h32,*.h80,*.h86,*.a43,*.a90       setf hex
 
 " Hjson
 au BufNewFile,BufRead *.hjson                  setf hjson
index d77e5e0ac7edd8a2e96c066fc473e837eccc43ab..881fab23365511250e214adefaabf08a15da916b 100644 (file)
@@ -312,7 +312,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     hcl: ['file.hcl'],
     heex: ['file.heex'],
     hercules: ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
-    hex: ['file.hex', 'file.h32'],
+    hex: ['file.hex', 'file.ihex', 'file.ihe', 'file.ihx', 'file.int', 'file.mcs', 'file.h32', 'file.h80', 'file.h86', 'file.a43', 'file.a90'],
     hgcommit: ['hg-editor-file.txt'],
     hjson: ['file.hjson'],
     hlsplaylist: ['file.m3u', 'file.m3u8'],
index 1f748c82601f74bc098a069f78fe6786b4eca2a5..a5395e9ca43c0664fece7c0af55ad63a4bcf07b9 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    234,
 /**/
     233,
 /**/