]> granicus.if.org Git - vim/commitdiff
patch 8.2.3285: scdoc filetype is not recognized v8.2.3285
authorGregory Anders <greg@gpanders.com>
Wed, 4 Aug 2021 18:00:27 +0000 (20:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2021 18:00:27 +0000 (20:00 +0200)
Problem:    Scdoc filetype is not recognized.
Solution:   Add filetype detection. (Gregory Anders, closes #8701)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index e14d80fd8ed4c541fdfbdb197cf1501eca7aa50d..648a19d9e091c4b58540bfbc107863b0893958b1 100644 (file)
@@ -1526,6 +1526,9 @@ au BufNewFile,BufRead *.sbt                       setf sbt
 " Scilab
 au BufNewFile,BufRead *.sci,*.sce              setf scilab
 
+" scdoc
+au BufNewFile,BufRead *.scd                    setf scdoc
+
 " SCSS
 au BufNewFile,BufRead *.scss                   setf scss
 
index 4f94b96e7a32e86131d9b102be5056e18583e705..cd40b6d3ca0a368c451a405559911c72a0a35597 100644 (file)
@@ -433,6 +433,7 @@ let s:filename_checks = {
     \ 'scilab': ['file.sci', 'file.sce'],
     \ 'screen': ['.screenrc', 'screenrc'],
     \ 'sexplib': ['file.sexp'],
+    \ 'scdoc': ['file.scd'],
     \ 'scss': ['file.scss'],
     \ 'sd': ['file.sd'],
     \ 'sdc': ['file.sdc'],
index 1b1f7a60565c6148e557d553a2e5e47e023be616..dfe952c88b2d0dc61bb81e3b0b1c2411ad7a07e2 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3285,
 /**/
     3284,
 /**/