mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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:
committed by
Christian Brabandt
parent
6b89dd6a72
commit
10407df7a9
@@ -1462,6 +1462,9 @@ au BufNewFile,BufRead {env,config}.nu setf nu
|
|||||||
" Oblivion Language and Oblivion Script Extender
|
" Oblivion Language and Oblivion Script Extender
|
||||||
au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse
|
au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse
|
||||||
|
|
||||||
|
" Objdump
|
||||||
|
au BufNewFile,BufRead *.objdump,*.cppobjdump setf objdump
|
||||||
|
|
||||||
" OCaml
|
" OCaml
|
||||||
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo setf ocaml
|
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo setf ocaml
|
||||||
|
|
||||||
|
14
runtime/ftplugin/objdump.vim
Normal file
14
runtime/ftplugin/objdump.vim
Normal 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
|
@@ -495,6 +495,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
nsis: ['file.nsi', 'file.nsh'],
|
nsis: ['file.nsi', 'file.nsh'],
|
||||||
nu: ['env.nu', 'config.nu'],
|
nu: ['env.nu', 'config.nu'],
|
||||||
obj: ['file.obj'],
|
obj: ['file.obj'],
|
||||||
|
objdump: ['file.objdump', 'file.cppobjdump'],
|
||||||
obse: ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
|
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'],
|
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'],
|
occam: ['file.occ'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2071,
|
||||||
/**/
|
/**/
|
||||||
2070,
|
2070,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user