]> granicus.if.org Git - vim/commitdiff
patch 9.0.1278: go.work.sum files are not recognized v9.0.1278
authorAmaan Qureshi <amaanq12@gmail.com>
Sat, 4 Feb 2023 12:12:36 +0000 (12:12 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Feb 2023 12:12:36 +0000 (12:12 +0000)
Problem:    go.work.sum files are not recognized.
Solution:   Recognize go.work.sum files as the gosum filetype. (Amaan Qureshi,
            closes #11940)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index c67ce95ca44520fd857d4481f29bb144ca5dc8d9..629e697b1a8e9554aa817d87bed7cdb07519f636 100644 (file)
@@ -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
index 101bdfd9704cb0a81c8dc44cad363eaa3b3a050b..1f9aae65ab22973195682b9ce3734f6ded9c675f 100644 (file)
@@ -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'],
index 0768881b996ff24024849aa09b42545b06a7f81e..f21013d40c6e92abaa98ed4328c1da42b14faac3 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1278,
 /**/
     1277,
 /**/