diff runtime/filetype.vim @ 25878:f88641e6996c v8.2.3473

patch 8.2.3473: some files with tcl syntax are not recognized Commit: https://github.com/vim/vim/commit/78aa5ffe314f40d33666f03b833f66b11c3d0f67 Author: Bram Moolenaar <Bram@vim.org> 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
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Oct 2021 21:45:04 +0200
parents 3c797fa8206d
children 9c221ad9634a
line wrap: on
line diff
--- 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