changeset 32182:d53f7be86b38 v9.0.1422

patch 9.0.1422: Sage files are not recognized Commit: https://github.com/vim/vim/commit/d0639d717ba7cf8b04b588aadd0b379ed43a5f1f Author: Amaan Qureshi <amaanq12@gmail.com> Date: Tue Mar 21 21:31:55 2023 +0000 patch 9.0.1422: Sage files are not recognized Problem: Sage files are not recognized. Solution: Add a pattern for Sage files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12176)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Mar 2023 22:45:03 +0100
parents 5e0339110671
children 819e403d09a0
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1811,6 +1811,9 @@ au BufNewFile,BufRead Cargo.lock,*/.carg
 " 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
 
--- 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'],
--- 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,