]> granicus.if.org Git - vim/commitdiff
patch 8.2.2106: TOML files are not recognized v8.2.2106
authorBram Moolenaar <Bram@vim.org>
Mon, 7 Dec 2020 17:05:02 +0000 (18:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 7 Dec 2020 17:05:02 +0000 (18:05 +0100)
Problem:    TOML files are not recognized.
Solution:   Match *.toml. (issue #7432)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 7dca0e0d32d7a9af08445092f1167e5272619fba..881366ed561e40247269dec8be4677263bbcee6f 100644 (file)
@@ -1742,6 +1742,9 @@ au BufNewFile,BufRead *.tf,.tfrc,tfrc             setf tf
 " 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
 
index 93540829a554ece72fcf3a053d6040a5ba4a88ea..450aae48e944de9c5e3ecb3fa1a5a96253ed2bff 100644 (file)
@@ -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'],
index 28360de30dbf02c3671588861d0ea3fc9b0e21bf..b0df92435f569e03c8a41848d89eb09a2d4e946c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2106,
 /**/
     2105,
 /**/