From: Leandro Lourenci <2339362+lourenci@users.noreply.github.com> Date: Sat, 9 Jul 2022 19:27:07 +0000 (+0100) Subject: patch 9.0.0049: csv and tsv files are not recognized X-Git-Tag: v9.0.0049 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99af91e5820c78a196c9272cd8ce5aa5be7bf374;p=vim patch 9.0.0049: csv and tsv files are not recognized Problem: Csv and tsv files are not recognized. Solution: Add patterns fo csv and tsv files. (Leandro Lourenci, closes #10680) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 8d6a97de2..42bd4be6a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -404,6 +404,9 @@ au BufNewFile,BufRead configure.in,configure.ac setf config " Cooklang au BufNewFile,BufRead *.cook setf cook +" CSV Files +au BufNewFile,BufRead *.csv setf csv + " CUDA Compute Unified Device Architecture au BufNewFile,BufRead *.cu,*.cuh setf cuda @@ -2028,6 +2031,9 @@ au BufNewFile,BufReadPost *.tssop setf tssop " TSS - Command Line (temporary) au BufNewFile,BufReadPost *.tsscl setf tsscl +" TSV Files +au BufNewFile,BufRead *.tsv setf tsv + " TWIG files au BufNewFile,BufReadPost *.twig setf twig diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index ff4490524..2b7b79765 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -128,6 +128,7 @@ let s:filename_checks = { \ 'csp': ['file.csp', 'file.fdr'], \ 'css': ['file.css'], \ 'cterm': ['file.con'], + \ 'csv': ['file.csv'], \ 'cucumber': ['file.feature'], \ 'cuda': ['file.cu', 'file.cuh'], \ 'cupl': ['file.pld'], @@ -564,6 +565,7 @@ let s:filename_checks = { \ 'tsscl': ['file.tsscl'], \ 'tssgm': ['file.tssgm'], \ 'tssop': ['file.tssop'], + \ 'tsv': ['file.tsv'], \ 'twig': ['file.twig'], \ 'typescript.glimmer': ['file.gts'], \ 'typescriptreact': ['file.tsx'], diff --git a/src/version.c b/src/version.c index 21f9199e0..51e33b4e3 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 49, /**/ 48, /**/