diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-21 21:31:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-21 21:31:55 +0000 |
commit | d0639d717ba7cf8b04b588aadd0b379ed43a5f1f (patch) | |
tree | 1edee2e6e4487e67209b467f7baf8bd8ca00ddb6 | |
parent | 8aa2a37f8983a7863afa32d9ffbe64b2f2bc70be (diff) | |
download | vim-git-d0639d717ba7cf8b04b588aadd0b379ed43a5f1f.tar.gz |
patch 9.0.1422: Sage files are not recognizedv9.0.1422
Problem: Sage files are not recognized.
Solution: Add a pattern for Sage files. (Amaan Qureshi, closes #12176)
-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 a1cff4631..90ba9613e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1811,6 +1811,9 @@ au BufNewFile,BufRead Cargo.lock,*/.cargo/config,*/.cargo/credentials setf toml " S-lang (or shader language, or SmallLisp) au BufNewFile,BufRead *.sl setf slang +" Sage +au BufNewFile,BufRead *.sage setf sage + " Samba config au BufNewFile,BufRead smb.conf setf samba diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 55548e4a5..e5f16cd7e 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -540,6 +540,7 @@ let s:filename_checks = { \ 'skill': ['file.il', 'file.ils', 'file.cdf'], \ 'cdc': ['file.cdc'], \ 'slang': ['file.sl'], + \ 'sage': ['file.sage'], \ 'slice': ['file.ice'], \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], diff --git a/src/version.c b/src/version.c index f6cac46e7..8ed826395 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 */ /**/ + 1422, +/**/ 1421, /**/ 1420, |