]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2071: objdump files not recognized v9.0.2071
authorColin Kennedy <colinvfx@gmail.com>
Thu, 26 Oct 2023 21:00:05 +0000 (23:00 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 26 Oct 2023 21:03:15 +0000 (23:03 +0200)
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>
runtime/filetype.vim
runtime/ftplugin/objdump.vim [new file with mode: 0644]
src/testdir/test_filetype.vim
src/version.c

index 567c0a3e9521c8c75726ede149d97339e3e8cba8..0de6171d62ae668e0080364ba0a3e2a277103ebe 100644 (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
 
diff --git a/runtime/ftplugin/objdump.vim b/runtime/ftplugin/objdump.vim
new file mode 100644 (file)
index 0000000..7517a34
--- /dev/null
@@ -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
index 1df823718670a797a1ea775de581c0fe67db0bcd..30c3a1ad850874bf342979e95727780750ff744f 100644 (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'],
index 2bcdfc9736b23097703bafb249ce52ada0835bbb..dc630b8dc7cc3a666e5e8269f703964a5d47c925 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2071,
 /**/
     2070,
 /**/