mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 04:39:07 +00:00
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:
@@ -1323,6 +1323,7 @@ local extension = {
|
||||
itcl = 'tcl',
|
||||
tk = 'tcl',
|
||||
jacl = 'tcl',
|
||||
xdc = 'tcl',
|
||||
tl = 'teal',
|
||||
templ = 'templ',
|
||||
tmpl = 'template',
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user