Mercurial > vim
changeset 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 | 7c24d8fdd652 |
children | 14ca7cc78a56 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 7 insertions(+), 2 deletions(-) [+] |
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
--- 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'],