diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-04 12:12:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-04 12:12:36 +0000 |
commit | 4ad8ae8465e30df38dba31910f130891b16d38a0 (patch) | |
tree | 8994e840500d2be7ae6a6eebac651bc166a59c3d | |
parent | 49f0524fb575bb1cf4881e472afab7d37c579440 (diff) |
patch 9.0.1278: go.work.sum files are not recognizedv9.0.1278
Problem: go.work.sum files are not recognized.
Solution: Recognize go.work.sum files as the gosum filetype. (Amaan Qureshi,
closes #11940)
-rw-r--r-- | runtime/filetype.vim | 2 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c67ce95ca4..629e697b1a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 101bdfd970..1f9aae65ab 100644 --- 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'], diff --git a/src/version.c b/src/version.c index 0768881b99..f21013d40c 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 */ /**/ + 1278, +/**/ 1277, /**/ 1276, |