# HG changeset patch # User Bram Moolenaar # Date 1633376704 -7200 # Node ID f88641e6996c69819d572fca8b7af6119cdc3146 # Parent 7c24d8fdd652b3cd1044f1e5eb5bbacee5b8b1ed patch 8.2.3473: some files with tcl syntax are not recognized Commit: https://github.com/vim/vim/commit/78aa5ffe314f40d33666f03b833f66b11c3d0f67 Author: Bram Moolenaar Date: Mon Oct 4 20:41:45 2021 +0100 patch 8.2.3473: some files with tcl syntax are not recognized Problem: Some files with tcl syntax are not recognized. Solution: Add a few file patterns. (Doug Kearns diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1116,6 +1116,9 @@ au BufNewFile,BufRead *.mysql setf mys " 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 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3473, +/**/ 3472, /**/ 3471,