vim-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: vim/vim#17471

https://github.com/vim/vim/commit/601cfa9a2362ca14d83ddde392483bd6e3fbe39a

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian ClasonandWu, Zhenyu authored and Christian Clason committed 2025-06-10 09:10:47 +02:00
1 parent bcba067dc2
commit 2c80b05cbd
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1593,6 +1593,8 @@ local filename = {
mtab = 'fstab',
['.gdbinit'] = 'gdb',
gdbinit = 'gdb',
['.cuda-gdbinit'] = 'gdb',
['cuda-gdbinit'] = 'gdb',
['.gdbearlyinit'] = 'gdb',
gdbearlyinit = 'gdb',
['lltxxxxx.txt'] = 'gedcom',
+1 -1
View File
@@ -298,7 +298,7 @@ func s:GetFilenameChecks() abort
\ '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'],