patch 9.1.1446: filetype: cuda-gdb config files are not recognized
Commit:
https://github.com/vim/vim/commit/601cfa9a2362ca14d83ddde392483bd6e3fbe39a
Author: Wu, Zhenyu <[email protected]>
Date: Mon Jun 9 20:48:24 2025 +0200
patch 9.1.1446: filetype: cuda-gdb config files are not recognized
Problem: filetype: cuda-gdb config files are not recognized
Solution: detect .cuda-gdbinit and cuda-gdbinit files as gdb filetype
(Wu Zhenyu)
closes: #17471
Signed-off-by: Wu, Zhenyu <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index a6f13c8b8..17767fccc 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -932,7 +932,7 @@ au BufNewFile,BufRead *.fsh setf fsh
au BufNewFile,BufRead *.fsi,*.fsx setf fsharp
" GDB command files
-au BufNewFile,BufRead .gdbinit,gdbinit,.gdbearlyinit,gdbearlyinit,*.gdb
setf gdb
+au BufNewFile,BufRead
.gdbinit,gdbinit,.cuda-gdbinit,cuda-gdbinit,.gdbearlyinit,gdbearlyinit,*.gdb
setf gdb
" GDMO
au BufNewFile,BufRead *.mo,*.gdmo setf gdmo
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 2b6e436f0..c2ea8f1ee 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -298,7 +298,7 @@ def s:GetFilenameChecks(): dict<list<string>>
func: ['file.fc'],
fusion: ['file.fusion'],
fvwm: ['/.fvwm/file', 'any/.fvwm/file'],
- gdb: ['.gdbinit', 'gdbinit', 'file.gdb', '.config/gdbearlyinit',
'.gdbearlyinit'],
+ gdb: ['.gdbinit', 'gdbinit', '.cuda-gdbinit', 'cuda-gdbinit', 'file.gdb',
'.config/gdbearlyinit', '.gdbearlyinit'],
gdmo: ['file.mo', 'file.gdmo'],
gdresource: ['file.tscn', 'file.tres'],
gdscript: ['file.gd'],
diff --git a/src/version.c b/src/version.c
index 2b14b1555..b384859de 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1446,
/**/
1445,
/**/
--
--
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 visit
https://groups.google.com/d/msgid/vim_dev/E1uOhj3-009sAc-Bx%40256bit.org.