diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index ffb6a3adee..64b597943c 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1323,6 +1323,7 @@ local extension = { itcl = 'tcl', tk = 'tcl', jacl = 'tcl', + xdc = 'tcl', tl = 'teal', templ = 'templ', tmpl = 'template', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 329dfb8fe5..fa48f9aece 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -890,7 +890,7 @@ func s:GetFilenameChecks() abort \ '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', '.tclsh-history', - \ '.xsctcmdhistory', '.xsdbcmdhistory', 'vivado.jou', 'vivado.log'], + \ '.xsctcmdhistory', '.xsdbcmdhistory', 'vivado.jou', 'vivado.log', 'file.xdc'], \ 'teal': ['file.tl'], \ 'templ': ['file.templ'], \ 'template': ['file.tmpl'],