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

10407df7a9

Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
This commit is contained in:
Christian Clason 2023-10-27 09:37:48 +02:00
parent 9dc440400c
commit 5753e5e7eb
3 changed files with 17 additions and 0 deletions

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

@ -716,6 +716,8 @@ local extension = {
nsi = 'nsis',
nsh = 'nsis',
obj = 'obj',
objdump = 'objdump',
cppobjdump = 'objdump',
obl = 'obse',
obse = 'obse',
oblivion = 'obse',

View File

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