vim-patch:9.2.0860: filetype: xilinx design constraint files are not recognized (#41024)

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: vim/vim#20853

247a4cb45e

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq
2026-07-28 18:11:29 +08:00
committed by GitHub
parent 72e3fc2074
commit 5745ea93f1
2 changed files with 2 additions and 1 deletions

View File

@@ -1323,6 +1323,7 @@ local extension = {
itcl = 'tcl',
tk = 'tcl',
jacl = 'tcl',
xdc = 'tcl',
tl = 'teal',
templ = 'templ',
tmpl = 'template',

View File

@@ -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'],