]> granicus.if.org Git - vim/commitdiff
patch 9.0.1230: Apache thrift files are not recognized v9.0.1230
authorAmaan Qureshi <amaanq12@gmail.com>
Sun, 22 Jan 2023 18:16:44 +0000 (18:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 Jan 2023 18:16:44 +0000 (18:16 +0000)
Problem:    Apache thrift files are not recognized.
Solution:   Add a pattern for thrift files. (Amaan Qureshi, closes #11859)

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

index fae19b9f8c453bba5372fcc9e35ca2a10c25669d..0ce10464336a53662a0907459b16deb4311c1936 100644 (file)
@@ -2106,6 +2106,9 @@ au BufNewFile,BufRead *.texinfo,*.texi,*.txi      setf texinfo
 " TeX configuration
 au BufNewFile,BufRead texmf.cnf                        setf texmf
 
+" Thrift (Apache)
+au BufNewFile,BufRead *.thrift                 setf thrift
+
 " Tidy config
 au BufNewFile,BufRead .tidyrc,tidyrc,tidy.conf setf tidy
 
index 0efdf9632c6176ce790bf96e3dde1c2f3c0cee52..787d729cf465f4a54f0d313ced7506f65eb21677 100644 (file)
@@ -580,6 +580,7 @@ let s:filename_checks = {
     \ 'texmf': ['texmf.cnf'],
     \ 'text': ['file.text', 'file.txt', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
     \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
+    \ 'thrift': ['file.thrift'],
     \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
     \ 'tilde': ['file.t.html'],
     \ 'tla': ['file.tla'],
index 80d8444ef64a11ebe7321b4c0f64bbc52c422117..4e66d9fe5a100265e6fde781e53922f270ae158a 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1230,
 /**/
     1229,
 /**/