]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1407: TableGen files are not recognized v9.0.1407
authorAmaan Qureshi <amaanq12@gmail.com>
Thu, 16 Mar 2023 15:54:18 +0000 (15:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2023 15:54:18 +0000 (15:54 +0000)
Problem:    TableGen files are not recognized.
Solution:   Add a pattern for TableGen files. (Amaan Qureshi, closes #12156)

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

index ada48bde95b3a4c4766eb5ec19ca62b8954ad67c..0b9e95284b9bbff48fbe947d0282768a5d597cb8 100644 (file)
@@ -2105,6 +2105,9 @@ au BufNewFile,BufRead *.svg                       setf svg
 " Surface
 au BufRead,BufNewFile *.sface                  setf surface
 
+" LLVM TableGen
+au BufNewFile,BufRead *.td                     setf tablegen
+
 " Tads (or Nroff or Perl test file)
 au BufNewFile,BufRead *.t
        \ if !dist#ft#FTnroff() && !dist#ft#FTperl() | setf tads | endif
index c57f4da6aaa02a34790ecaffe89b132c6a86f76c..9bbd78c683aacb768fb844b54c86a113fdb6fa24 100644 (file)
@@ -587,6 +587,7 @@ let s:filename_checks = {
     \ 'taskdata': ['pending.data', 'completed.data', 'undo.data'],
     \ 'taskedit': ['file.task'],
     \ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc'],
+    \ 'tablegen': ['file.td'],
     \ 'teal': ['file.tl'],
     \ 'template': ['file.tmpl'],
     \ 'teraterm': ['file.ttl'],
index 1a0a0362d20cfd01dd44400447239a9a413895a4..1295a9c4ff7a561877e9ca813375c9fcc1b9cf1d 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1407,
 /**/
     1406,
 /**/