From 043d7b2c84cda275354aa023b5769660ea70a168 Mon Sep 17 00:00:00 2001 From: Amaan Q Date: Wed, 11 Jan 2023 21:24:26 +0000 Subject: [PATCH] patch 9.0.1182: go checksum files are not recognized Problem: go checksum files are not recognized. Solution: Add the name of go checksum files. (Amaan Qureshi, closes #11803) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ed2f63e820..d19906327e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -849,6 +849,9 @@ au BufNewFile,BufRead *.htpp setf hastepreproc " HCL au BufRead,BufNewFile *.hcl setf hcl +" Go checksum file (must be before *.sum Hercules) +au BufNewFile,BufRead go.sum setf gosum + " Hercules au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum setf hercules diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 05ce070a6c..d0cd3c5e3c 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -230,6 +230,7 @@ let s:filename_checks = { \ 'gnuplot': ['file.gpi', '.gnuplot'], \ 'go': ['file.go'], \ 'gomod': ['go.mod'], + \ 'gosum': ['go.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'], diff --git a/src/version.c b/src/version.c index 898cc6b578..b532948040 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1182, /**/ 1181, /**/