vim-patch:9.1.0234: filetype: support for Intel HEX files is lacking

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: vim/vim#14355

e523dd9803

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 18:57:50 +02:00
parent b8858dddbf
commit c24dcb1bea
2 changed files with 10 additions and 1 deletions

View File

@ -504,7 +504,16 @@ local extension = {
vc = 'hercules',
heex = 'heex',
hex = 'hex',
['a43'] = 'hex',
['a90'] = 'hex',
['h32'] = 'hex',
['h80'] = 'hex',
['h86'] = 'hex',
ihex = 'hex',
ihe = 'hex',
ihx = 'hex',
int = 'hex',
mcs = 'hex',
hjson = 'hjson',
m3u = 'hlsplaylist',
m3u8 = 'hlsplaylist',

View File

@ -302,7 +302,7 @@ func s:GetFilenameChecks() abort
\ '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'],