]> granicus.if.org Git - vim/commitdiff
patch 9.0.0049: csv and tsv files are not recognized v9.0.0049
authorLeandro Lourenci <2339362+lourenci@users.noreply.github.com>
Sat, 9 Jul 2022 19:27:07 +0000 (20:27 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 Jul 2022 19:27:07 +0000 (20:27 +0100)
Problem:    Csv and tsv files are not recognized.
Solution:   Add patterns fo csv and tsv files. (Leandro Lourenci,
            closes #10680)

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

index 8d6a97de25d67b2b63c00bc8d0c2774ec7cf5d44..42bd4be6a609bfc5f604e50cfa1bc48f3c4497b0 100644 (file)
@@ -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
 
index ff4490524f3c1ae353e69b51bd1eb48d3154901e..2b7b79765d2ae18e24cc7fbd0658ac3fb8ffd60e 100644 (file)
@@ -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'],
index 21f9199e078aba4d0074a80e17a24d1cdcde2b63..51e33b4e3cbc73778ff6df64d0e0913b71a65778 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    49,
 /**/
     48,
 /**/