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

601cfa9a23

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

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',

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'],