mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
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:
parent
9dc440400c
commit
5753e5e7eb
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
|
@ -716,6 +716,8 @@ local extension = {
|
|||||||
nsi = 'nsis',
|
nsi = 'nsis',
|
||||||
nsh = 'nsis',
|
nsh = 'nsis',
|
||||||
obj = 'obj',
|
obj = 'obj',
|
||||||
|
objdump = 'objdump',
|
||||||
|
cppobjdump = 'objdump',
|
||||||
obl = 'obse',
|
obl = 'obse',
|
||||||
obse = 'obse',
|
obse = 'obse',
|
||||||
oblivion = 'obse',
|
oblivion = 'obse',
|
||||||
|
@ -455,6 +455,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ '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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user