diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-24 11:33:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-24 11:33:56 +0000 |
commit | 70a120b72b2b48800f881725c58241cd170893f8 (patch) | |
tree | a52867d68026c158c2dc589bf3842fcf0f8dcb86 | |
parent | 51e64b2789eb7e60f7c5892a43426ab4ec1a54aa (diff) | |
download | vim-git-8.2.3880.tar.gz |
patch 8.2.3880: Solution filter files are not recognizedv8.2.3880
Problem: Solution filter files are not recognized.
Solution: Add pattern *.slnf and use json. (Doug Kearns)
-rw-r--r-- | runtime/filetype.vim | 1 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index bd1d2e905..c3d370d4e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1750,6 +1750,7 @@ au BufNewFile,BufRead *.ice setf slice " Microsoft Visual Studio Solution au BufNewFile,BufRead *.sln setf solution +au BufNewFile,BufRead *.slnf setf json " Spice au BufNewFile,BufRead *.sp,*.spice setf spice diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 719d690e8..8fb7d9294 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -263,7 +263,7 @@ let s:filename_checks = { \ 'jgraph': ['file.jgr'], \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'], \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'], - \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc'], + \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'], \ 'jsonc': ['file.jsonc'], \ 'jsp': ['file.jsp'], \ 'julia': ['file.jl'], diff --git a/src/version.c b/src/version.c index 20c78d71b..6b4708d80 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3880, +/**/ 3879, /**/ 3878, |