Commit: patch 9.2.0860: filetype: xilinx design constraint files are not recognized

Christian Brabandt <[email protected]> Mon, 27 Jul 2026 21:15:03 +0200
Newsgroups gmane.editors.vim.devel
Message-ID <[email protected]>
patch 9.2.0860: filetype: xilinx design constraint files are not recognized

Commit: https://github.com/vim/vim/commit/247a4cb45e5d9b03e4cb0bbf1eddd0538471649d
Author: Wu, Zhenyu <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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 <[email protected]>
 
 # 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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1woQn1-00H6G2-Hd%40256bit.org.