mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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
e54a8e7c73
Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user