diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-12 17:06:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 17:06:21 +0800 |
commit | e4fb3e200768763fbff8668c19b2011d6c8309aa (patch) | |
tree | 39c0c684d7efaa88bfc8c6d66c5ac637d4baab71 /runtime | |
parent | a93a045e63f96ba0b2b7f005818ddf16c2640038 (diff) | |
download | rneovim-e4fb3e200768763fbff8668c19b2011d6c8309aa.tar.gz rneovim-e4fb3e200768763fbff8668c19b2011d6c8309aa.tar.bz2 rneovim-e4fb3e200768763fbff8668c19b2011d6c8309aa.zip |
vim-patch:9.1.0303: filetype: some protocol buffer files not recognized (#28293)
Problem: filetype: some protocol buffer files not recognized
Solution: Detect '*.textproto', '*.textpb', '*.txtpb' as pbtxt files
(Bruno Belanyi)
See: https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files
closes: vim/vim#14463
https://github.com/vim/vim/commit/e54a8e7c73bbfba0c77e928f27fb3a9bffd2e8fd
Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 7de2a95c6b..d2c6d87774 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -776,6 +776,9 @@ local extension = { pas = 'pascal', lpr = detect_line1('<%?xml', 'xml', 'pascal'), dpr = 'pascal', + txtpb = 'pbtxt', + textproto = 'pbtxt', + textpb = 'pbtxt', pbtxt = 'pbtxt', g = 'pccts', pcmk = 'pcmk', |