changeset 31898:31d269fb880e v9.0.1281

patch 9.0.1281: Cadence files are not recognized Commit: https://github.com/vim/vim/commit/cb626a4692df7154be02b47d6089ec679e95cb44 Author: Janez Podhostnik <janez.podhostnik@gmail.com> Date: Sun Feb 5 13:01:40 2023 +0000 patch 9.0.1281: Cadence files are not recognized Problem: Cadence files are not recognized. Solution: Recognize Cadence files. (Janez Podhostnik, closes https://github.com/vim/vim/issues/11951)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Feb 2023 14:15:04 +0100
parents bb51f13a7bea
children e13629a1e661
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
@@ -1911,6 +1911,9 @@ au BufNewFile,BufRead *.sst.meta,*.-sst.
 " SKILL
 au BufNewFile,BufRead *.il,*.ils,*.cdf		setf skill
 
+" Cadence
+au BufNewFile,BufRead *.cdc			setf cdc
+
 " SLRN
 au BufNewFile,BufRead .slrnrc			setf slrnrc
 au BufNewFile,BufRead *.score			setf slrnsc
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -521,6 +521,7 @@ let s:filename_checks = {
     \ 'sinda': ['file.sin', 'file.s85'],
     \ 'sisu': ['file.sst', 'file.ssm', 'file.ssi', 'file.-sst', 'file._sst', 'file.sst.meta', 'file.-sst.meta', 'file._sst.meta'],
     \ 'skill': ['file.il', 'file.ils', 'file.cdf'],
+    \ 'cdc': ['file.cdc'],
     \ 'slang': ['file.sl'],
     \ 'slice': ['file.ice'],
     \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'],
--- 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 */
 /**/
+    1281,
+/**/
     1280,
 /**/
     1279,