From: Amaan Qureshi Date: Thu, 16 Mar 2023 15:54:18 +0000 (+0000) Subject: patch 9.0.1407: TableGen files are not recognized X-Git-Tag: v9.0.1407 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ef029ee416fc2b402c3f321a55c9049b0ad2a9;p=thirdparty%2Fvim.git patch 9.0.1407: TableGen files are not recognized Problem: TableGen files are not recognized. Solution: Add a pattern for TableGen files. (Amaan Qureshi, closes #12156) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ada48bde95..0b9e95284b 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index c57f4da6aa..9bbd78c683 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'], diff --git a/src/version.c b/src/version.c index 1a0a0362d2..1295a9c4ff 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1407, /**/ 1406, /**/