Mercurial > vim
changeset 25497:2246bcbeff89 v8.2.3285
patch 8.2.3285: scdoc filetype is not recognized
Commit: https://github.com/vim/vim/commit/dd097bdc1376e4ca2cfd4a4d64021b6ba0df4bed
Author: Gregory Anders <greg@gpanders.com>
Date: Wed Aug 4 20:00:27 2021 +0200
patch 8.2.3285: scdoc filetype is not recognized
Problem: Scdoc filetype is not recognized.
Solution: Add filetype detection. (Gregory Anders, closes https://github.com/vim/vim/issues/8701)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Aug 2021 20:15:03 +0200 |
parents | 3fd9892abbcb |
children | d8b600855be4 |
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 @@ -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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'],