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 <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
328332b0b0
commit
601cfa9a23
@ -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
|
||||
|
||||
@ -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'],
|
||||
|
||||
@ -709,6 +709,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1446,
|
||||
/**/
|
||||
1445,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user