patch 9.0.2071: objdump files not recognized

Problem:  objdump files not recognized
Solution: detect *.objdump files, add a filetype plugin

Added the objdump file/text format

closes: #13425

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
This commit is contained in:
Colin Kennedy
2023-10-26 23:00:05 +02:00
committed by Christian Brabandt
parent 6b89dd6a72
commit 10407df7a9
4 changed files with 20 additions and 0 deletions

View File

@ -1462,6 +1462,9 @@ au BufNewFile,BufRead {env,config}.nu setf nu
" Oblivion Language and Oblivion Script Extender
au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse
" Objdump
au BufNewFile,BufRead *.objdump,*.cppobjdump setf objdump
" OCaml
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo setf ocaml

View File

@ -0,0 +1,14 @@
" Vim filetype plugin file
" Language: Objdump
" Maintainer: Colin Kennedy <colinvfx@gmail.com>
" Last Change: 2023 October 25
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let b:undo_ftplugin = "setlocal cms<"
setlocal commentstring=#\ %s

View File

@ -495,6 +495,7 @@ def s:GetFilenameChecks(): dict<list<string>>
nsis: ['file.nsi', 'file.nsh'],
nu: ['env.nu', 'config.nu'],
obj: ['file.obj'],
objdump: ['file.objdump', 'file.cppobjdump'],
obse: ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
ocaml: ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
occam: ['file.occ'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2071,
/**/
2070,
/**/