changeset 23120:640ec41661b1 v8.2.2106

patch 8.2.2106: TOML files are not recognized Commit: https://github.com/vim/vim/commit/b237ae7b837a31922d31c3a27b7c66e63468b8a8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 7 18:05:02 2020 +0100 patch 8.2.2106: TOML files are not recognized Problem: TOML files are not recognized. Solution: Match *.toml. (issue https://github.com/vim/vim/issues/7432)
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Dec 2020 18:15:04 +0100
parents 2c01f0efcb8b
children baa91af1bc99
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1742,6 +1742,9 @@ au BufNewFile,BufRead *.tf,.tfrc,tfrc		s
 " tmux configuration
 au BufNewFile,BufRead {.,}tmux*.conf		setf tmux
 
+" TOML
+au BufNewFile,BufRead *.toml			setf toml
+
 " TPP - Text Presentation Program
 au BufNewFile,BufReadPost *.tpp			setf tpp
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -479,6 +479,7 @@ let s:filename_checks = {
     \ 'tilde': ['file.t.html'],
     \ 'tli': ['file.tli'],
     \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf'],
+    \ 'toml': ['file.toml'],
     \ 'tpp': ['file.tpp'],
     \ 'treetop': ['file.treetop'],
     \ 'trustees': ['trustees.conf'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2106,
+/**/
     2105,
 /**/
     2104,