changeset 31892:99d634091eec v9.0.1278

patch 9.0.1278: go.work.sum files are not recognized Commit: https://github.com/vim/vim/commit/4ad8ae8465e30df38dba31910f130891b16d38a0 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sat Feb 4 12:12:36 2023 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Feb 2023 13:15:03 +0100
parents 62a6b0f327ba
children b15d7e657297
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -862,7 +862,7 @@ au BufNewFile,BufRead *.htpp			setf hast
 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
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1278,
+/**/
     1277,
 /**/
     1276,