Skip to content

Commit 9a6cafd

Browse files
Freed-Wuchrisbra
authored andcommitted
patch 9.1.1730: filetype: vivado journal/log files are not recognized
Problem: filetype: vivado journal/log files are not recognized Solution: Detect vivado*.{jou,log} as tcl filetype (Wu Zhenyu). closes: #18191 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 5f8e31f commit 9a6cafd

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,9 @@ au BufNewFile,BufRead *.msql setf msql
16761676
au BufNewFile,BufRead *.mysql,.mysql_history setf mysql
16771677

16781678
" Tcl Shell RC file
1679-
au BufNewFile,BufRead tclsh.rc setf tcl
1679+
" Vivado journal file records REPL input in tcl syntax
1680+
" Vivado log file records REPL input in tcl syntax and output
1681+
au BufNewFile,BufRead tclsh.rc,vivado*.{jou,log} setf tcl
16801682

16811683
" M$ Resource files
16821684
" /etc/Muttrc.d/file.rc is muttrc

src/testdir/test_filetype.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,8 @@ def s:GetFilenameChecks(): dict<list<string>>
823823
tal: ['file.tal'],
824824
taskdata: ['pending.data', 'completed.data', 'undo.data'],
825825
taskedit: ['file.task'],
826-
tcl: ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history', '.xsctcmdhistory', '.xsdbcmdhistory'],
826+
tcl: ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history',
827+
'.xsctcmdhistory', '.xsdbcmdhistory', 'vivado.jou', 'vivado.log'],
827828
teal: ['file.tl'],
828829
templ: ['file.templ'],
829830
template: ['file.tmpl'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ static char *(features[]) =
724724

725725
static int included_patches[] =
726726
{ /* Add new patch number below this line */
727+
/**/
728+
1730,
727729
/**/
728730
1729,
729731
/**/

0 commit comments

Comments
 (0)