Skip to content

Commit b237ae7

Browse files
committed
patch 8.2.2106: TOML files are not recognized
Problem: TOML files are not recognized. Solution: Match *.toml. (issue #7432)
1 parent 7b130b9 commit b237ae7

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,9 @@ au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf
17421742
" tmux configuration
17431743
au BufNewFile,BufRead {.,}tmux*.conf setf tmux
17441744

1745+
" TOML
1746+
au BufNewFile,BufRead *.toml setf toml
1747+
17451748
" TPP - Text Presentation Program
17461749
au BufNewFile,BufReadPost *.tpp setf tpp
17471750

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ let s:filename_checks = {
479479
\ 'tilde': ['file.t.html'],
480480
\ 'tli': ['file.tli'],
481481
\ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf'],
482+
\ 'toml': ['file.toml'],
482483
\ 'tpp': ['file.tpp'],
483484
\ 'treetop': ['file.treetop'],
484485
\ 'trustees': ['trustees.conf'],

src/version.c

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

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2106,
753755
/**/
754756
2105,
755757
/**/

0 commit comments

Comments
 (0)