Mercurial > vim
changeset 31796:e2fa5867a7bd v9.0.1230
patch 9.0.1230: Apache thrift files are not recognized
Commit: https://github.com/vim/vim/commit/f3da4c8427b1b12d7aaffa307ec085ca97ea9ad9
Author: Amaan Qureshi <amaanq12@gmail.com>
Date: Sun Jan 22 18:16:44 2023 +0000
patch 9.0.1230: Apache thrift files are not recognized
Problem: Apache thrift files are not recognized.
Solution: Add a pattern for thrift files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11859)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Jan 2023 19:30:04 +0100 |
parents | 3542f4bba987 |
children | dd6495176845 |
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 @@ -2106,6 +2106,9 @@ au BufNewFile,BufRead *.texinfo,*.texi,* " 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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'],