changeset 28093:3fd6b3ebe0b7 v8.2.4571

patch 8.2.4571: not all gdb files are recognized Commit: https://github.com/vim/vim/commit/8d5e514d77bd4b1956656ad2be2ce7094bd43a72 Author: Jade Lovelace <software@lfcode.ca> Date: Tue Mar 15 12:00:23 2022 +0000 patch 8.2.4571: not all gdb files are recognized Problem: Not all gdb files are recognized. Solution: Add a few more patterns for gdb. (Jade Lovelace, closes https://github.com/vim/vim/issues/9956)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 13:15:04 +0100
parents 8b1ab22de19d
children 945bcf779047
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -668,7 +668,7 @@ au BufNewFile,BufRead *.fs			call dist#f
 au BufNewFile,BufRead *.fsi,*.fsx		setf fsharp
 
 " GDB command files
-au BufNewFile,BufRead .gdbinit,gdbinit		setf gdb
+au BufNewFile,BufRead .gdbinit,gdbinit,.gdbearlyinit,gdbearlyinit,*.gdb		setf gdb
 
 " GDMO
 au BufNewFile,BufRead *.mo,*.gdmo		setf gdmo
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -196,7 +196,7 @@ let s:filename_checks = {
     \ 'fstab': ['fstab', 'mtab'],
     \ 'fusion': ['file.fusion'],
     \ 'fvwm': ['/.fvwm/file', 'any/.fvwm/file'],
-    \ 'gdb': ['.gdbinit', 'gdbinit'],
+    \ 'gdb': ['.gdbinit', 'gdbinit', 'file.gdb', '.config/gdbearlyinit', '.gdbearlyinit'],
     \ 'gdresource': ['file.tscn', 'file.tres'],
     \ 'gdscript': ['file.gd'],
     \ 'gdmo': ['file.mo', 'file.gdmo'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4571,
+/**/
     4570,
 /**/
     4569,