diff options
author | Amaan Q <amaanq12@gmail.com> | 2023-01-11 21:24:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-11 21:24:26 +0000 |
commit | 043d7b2c84cda275354aa023b5769660ea70a168 (patch) | |
tree | 43567b139c6e8935192f24864d558fcb7b316a97 | |
parent | 6481accd4086845cfce7548e06cb797c80587a98 (diff) | |
download | vim-git-043d7b2c84cda275354aa023b5769660ea70a168.tar.gz |
patch 9.0.1182: go checksum files are not recognizedv9.0.1182
Problem: go checksum files are not recognized.
Solution: Add the name of go checksum files. (Amaan Qureshi, closes #11803)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ed2f63e82..d19906327 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 05ce070a6..d0cd3c5e3 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 898cc6b57..b53294804 100644 --- 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 */ /**/ + 1182, +/**/ 1181, /**/ 1180, |