]> granicus.if.org Git - vim/commitdiff
patch 8.2.3473: some files with tcl syntax are not recognized v8.2.3473
authorBram Moolenaar <Bram@vim.org>
Mon, 4 Oct 2021 19:41:45 +0000 (20:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 4 Oct 2021 19:41:45 +0000 (20:41 +0100)
Problem:    Some files with tcl syntax are not recognized.
Solution:   Add a few file patterns. (Doug Kearns

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

index 960ee39404b120030bd2217bd77e0d7e48224aa8..f8b2498fdce27f2bfe73ee03036f76eb91d91faa 100644 (file)
@@ -1116,6 +1116,9 @@ au BufNewFile,BufRead *.mysql                     setf mysql
 " Mutt setup files (must be before catch *.rc)
 au BufNewFile,BufRead */etc/Muttrc.d/*         call s:StarSetf('muttrc')
 
+" Tcl Shell RC file
+au BufNewFile,BufRead tclsh.rc                 setf tcl
+
 " M$ Resource files
 au BufNewFile,BufRead *.rc,*.rch               setf rc
 
@@ -1811,7 +1814,7 @@ au BufRead,BufNewFile {pending,completed,undo}.data  setf taskdata
 au BufRead,BufNewFile *.task                   setf taskedit
 
 " Tcl (JACL too)
-au BufNewFile,BufRead *.tcl,*.tk,*.itcl,*.itk,*.jacl   setf tcl
+au BufNewFile,BufRead *.tcl,*.tm,*.tk,*.itcl,*.itk,*.jacl,.tclshrc,.wishrc     setf tcl
 
 " TealInfo
 au BufNewFile,BufRead *.tli                    setf tli
index 42fe65a9cf94815bd58ca7139f91a5c07927a754..b1aa7cd2569eaeb344493324d08a5ffe48c00ffd 100644 (file)
@@ -493,7 +493,7 @@ let s:filename_checks = {
     \ 'tak': ['file.tak'],
     \ 'taskdata': ['pending.data', 'completed.data', 'undo.data'],
     \ 'taskedit': ['file.task'],
-    \ 'tcl': ['file.tcl', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl'],
+    \ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc'],
     \ 'teraterm': ['file.ttl'],
     \ 'terminfo': ['file.ti'],
     \ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'],
index 7d348c4757ad2f66b0ad29ebcac2d21ecf710375..21aab4fbb596488ddb1830e66f3e743e3505e657 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3473,
 /**/
     3472,
 /**/