mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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:
committed by
Christian Clason
parent
bcba067dc2
commit
2c80b05cbd
@ -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',
|
||||
|
@ -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'],
|
||||
|
Reference in New Issue
Block a user