mirror of https://github.com/vim/vim.git
patch 9.0.1278: go.work.sum files are not recognized
Problem: go.work.sum files are not recognized. Solution: Recognize go.work.sum files as the gosum filetype. (Amaan Qureshi, closes #11940)
This commit is contained in:
parent
49f0524fb5
commit
4ad8ae8465
|
@ -862,7 +862,7 @@ au BufNewFile,BufRead *.htpp setf hastepreproc
|
|||
au BufRead,BufNewFile *.hcl setf hcl
|
||||
|
||||
" Go checksum file (must be before *.sum Hercules)
|
||||
au BufNewFile,BufRead go.sum setf gosum
|
||||
au BufNewFile,BufRead go.sum,go.work.sum setf gosum
|
||||
|
||||
" Hercules
|
||||
au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum setf hercules
|
||||
|
|
|
@ -233,7 +233,7 @@ let s:filename_checks = {
|
|||
\ 'gnuplot': ['file.gpi', '.gnuplot'],
|
||||
\ 'go': ['file.go'],
|
||||
\ 'gomod': ['go.mod'],
|
||||
\ 'gosum': ['go.sum'],
|
||||
\ 'gosum': ['go.sum', 'go.work.sum'],
|
||||
\ 'gowork': ['go.work'],
|
||||
\ 'gp': ['file.gp', '.gprc'],
|
||||
\ 'gpg': ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel', 'any/.gnupg/gpg.conf', 'any/.gnupg/options', 'any/usr/any/gnupg/options.skel'],
|
||||
|
|
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
|||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1278,
|
||||
/**/
|
||||
1277,
|
||||
/**/
|
||||
|
|
Loading…
Reference in New Issue