patch 9.2.0860: filetype: xilinx design constraint files are not recognized
Commit:
https://github.com/vim/vim/commit/247a4cb45e5d9b03e4cb0bbf1eddd0538471649d
Author: Wu, Zhenyu <
wuzh...@ustc.edu>
Date: Mon Jul 27 18:55:11 2026 +0000
patch 9.2.0860: filetype: xilinx design constraint files are not recognized
Problem: filetype: xilinx design constraint files are not recognized
Solution: Detect *.xdc files as tcl filetype (Wu, Zhenyu)
Reference:
https://docs.amd.com/r/en-US/ug903-vivado-using-constraints/About-XDC-Constraints
closes: #20853
Signed-off-by: Wu, Zhenyu <
wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 5b4264aeb..7ed41785f 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
# Vim functions for file type detection
#
# Maintainer: The Vim Project <
https://github.com/vim/vim>
-# Last Change: 2026 Jul 24
+# Last Change: 2026 Jul 27
# Former Maintainer: Bram Moolenaar <
Br...@vim.org>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -3166,6 +3166,8 @@ const ft_from_ext = {
"tiltfile": "tiltfile",
# Ghostty
"ghostty": "ghostty",
+ # Xilinx Design Constraint file
+ "xdc": "tcl",
}
# Key: file name (the final path component, excluding the drive and root)
# Value: filetype
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 075430ae5..e98f308af 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -891,7 +891,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
diff --git a/src/version.c b/src/version.c
index 01b586beb..131299e89 100644
--- 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 */
+/**/
+ 860,
/**/
859,
/**/