patch 9.0.2071: objdump files not recognized
Commit:
https://github.com/vim/vim/commit/10407df7a95d0311c7d2eb920d3b72020db5b301
Author: Colin Kennedy <[email protected]>
Date: Thu Oct 26 23:00:05 2023 +0200
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 <[email protected]>
Co-authored-by: Colin Kennedy <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 567c0a3e9..0de6171d6 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/runtime/ftplugin/objdump.vim b/runtime/ftplugin/objdump.vim
new file mode 100644
index 000000000..7517a342a
--- /dev/null
+++ b/runtime/ftplugin/objdump.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin file
+" Language: Objdump
+" Maintainer: Colin Kennedy <[email protected]>
+" 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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 1df823718..30c3a1ad8 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 2bcdfc973..dc630b8dc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2071,
/**/
2070,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qw7h2-006rMI-Lc%40256bit.org.