From: Wu, Zhenyu Date: Mon, 27 Jul 2026 18:55:11 +0000 (+0000) Subject: patch 9.2.0860: filetype: xilinx design constraint files are not recognized X-Git-Tag: v9.2.0860^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=247a4cb45e5d9b03e4cb0bbf1eddd0538471649d;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 5b4264aeb4..7ed41785f9 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 -# Last Change: 2026 Jul 24 +# Last Change: 2026 Jul 27 # Former Maintainer: Bram Moolenaar # 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 075430ae54..e98f308afb 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -891,7 +891,7 @@ def s:GetFilenameChecks(): dict> 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 01b586bebf..131299e89f 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, /**/